mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 19:24:48 +08:00
adds react/settings controller and react/layout
This commit is contained in:
parent
d781ff9b2d
commit
1673d43993
2 changed files with 27 additions and 0 deletions
9
app/controllers/react/settings_controller.rb
Normal file
9
app/controllers/react/settings_controller.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
module React
|
||||
class SettingsController < ApplicationController
|
||||
layout 'application_react'
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
end
|
||||
end
|
18
app/views/layouts/application_react.html.erb
Normal file
18
app/views/layouts/application_react.html.erb
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta data-hook="head-js">
|
||||
<title>React App</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
||||
<%= favicon_link_tag "favicon.ico" %>
|
||||
<%= favicon_link_tag "favicon-16.png", type: "image/png", size: "16x16" %>
|
||||
<%= favicon_link_tag "favicon-32.png", type: "image/png", size: "32x32" %>
|
||||
<%= favicon_link_tag "favicon-48.png", type: "image/png", size: "48x48" %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<%= javascript_pack_tag 'settings/index' %>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue