switch from api application to full-stack application

This commit is contained in:
Marco Zeisler
2020-04-06 20:34:45 +02:00
parent 068de731dc
commit 572e1f821c
72 changed files with 8464 additions and 352 deletions
+2
View File
@@ -0,0 +1,2 @@
//= link_tree ../images
//= link_directory ../stylesheets .css
View File
+15
View File
@@ -0,0 +1,15 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
+3
View File
@@ -0,0 +1,3 @@
// Place all the styles related to the login controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: https://sass-lang.com/
+1 -1
View File
@@ -1,2 +1,2 @@
class ApplicationController < ActionController::API
class ApplicationController < ActionController::Base
end
-2
View File
@@ -1,2 +0,0 @@
class CoursesController < ApplicationController
end
+4
View File
@@ -0,0 +1,4 @@
class LoginController < ApplicationController
def index
end
end
-2
View File
@@ -1,2 +0,0 @@
class PeopleController < ApplicationController
end
-2
View File
@@ -1,2 +0,0 @@
class ProjectsController < ApplicationController
end
-2
View File
@@ -1,2 +0,0 @@
class ThesesController < ApplicationController
end
+2
View File
@@ -0,0 +1,2 @@
module ApplicationHelper
end
+2
View File
@@ -0,0 +1,2 @@
module LoginHelper
end
+6
View File
@@ -0,0 +1,6 @@
// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
import { createConsumer } from "@rails/actioncable"
export default createConsumer()
+5
View File
@@ -0,0 +1,5 @@
// Load all the channels within this directory and all subdirectories.
// Channel files must be named *_channel.js.
const channels = require.context('.', true, /_channel\.js$/)
channels.keys().forEach(channels)
+17
View File
@@ -0,0 +1,17 @@
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
require("@rails/ujs").start()
require("turbolinks").start()
require("@rails/activestorage").start()
require("channels")
// Uncomment to copy all static images under ../images to the output folder and reference
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
// or the `imagePath` JavaScript helper below.
//
// const images = require.context('../images', true)
// const imagePath = (name) => images(name, true)
+15
View File
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Tiss2go</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body>
<%= yield %>
</body>
</html>
+2
View File
@@ -0,0 +1,2 @@
<h1>Login#index</h1>
<p>Find me in app/views/login/index.html.erb</p>