package: move assets to "assets"
This commit is contained in:
parent
e8b2a3fb99
commit
d432969fb2
13 changed files with 16 additions and 16 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,8 +1,8 @@
|
|||
node_modules
|
||||
dist
|
||||
app/LICENSE
|
||||
app/client/*.css*
|
||||
app/client/*.png
|
||||
app/assets/*.css*
|
||||
app/assets/*.png
|
||||
app/client/*.js*
|
||||
app/launcher/*.js*
|
||||
app/server/*.js*
|
||||
|
|
|
|||
|
|
@ -6,16 +6,16 @@
|
|||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="apple-touch-icon" href="browser/logo.png" />
|
||||
<link rel="preload" href="client/fonts/fa-solid-900.woff" as="font"/>
|
||||
<link rel="preload" href="client/fonts/roboto-medium.woff" as="font"/>
|
||||
<link rel="stylesheet" type="text/css" href="client/open-stage-control.css" hot-reload/>
|
||||
<link rel="stylesheet" type="text/css" href="client/theme.css" hot-reload/>
|
||||
<link rel="stylesheet" type="text/css" href="client/fonts/fontawesome.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="client/fonts/fa-solid.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="client/fonts/roboto-medium.css"/>
|
||||
<link rel="apple-touch-icon" href="assets/logo.png" />
|
||||
<link rel="preload" href="assets/fonts/fa-solid-900.woff" as="font"/>
|
||||
<link rel="preload" href="assets/fonts/roboto-medium.woff" as="font"/>
|
||||
<link rel="stylesheet" type="text/css" href="assets/open-stage-control.css" hot-reload/>
|
||||
<link rel="stylesheet" type="text/css" href="assets/theme.css" hot-reload/>
|
||||
<link rel="stylesheet" type="text/css" href="assets/fonts/fontawesome.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="assets/fonts/fa-solid.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="assets/fonts/roboto-medium.css"/>
|
||||
<link rel="shortcut icon" href="assets/favicon.png?2"/>
|
||||
<script src="client/open-stage-control-client.js"></script>
|
||||
<link rel="shortcut icon" href="browser/favicon.png?2"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ var sass = require('node-sass'),
|
|||
fs = require('fs')
|
||||
|
||||
var indir = path.resolve(__dirname + '/../src/scss/'),
|
||||
outdir= path.resolve(__dirname + '/../app/client/')
|
||||
outdir= path.resolve(__dirname + '/../app/assets/')
|
||||
|
||||
fs.readdirSync(indir + '/themes/').forEach(file => {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
var cpr = require('cpr'),
|
||||
path = require('path'),
|
||||
files = [
|
||||
['../resources/images/logo-nobadge.png', '../app/browser/favicon.png'],
|
||||
['../resources/images/logo.png', '../app/browser/logo.png'],
|
||||
['../resources/images/logo-nobadge.png', '../app/assets/favicon.png'],
|
||||
['../resources/images/logo.png', '../app/assets/logo.png'],
|
||||
['../LICENSE', '../app/LICENSE'],
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ module.exports = function(options={}) {
|
|||
width: options.width || 800,
|
||||
height: options.height || 600,
|
||||
title: options.title || settings.read('appName'),
|
||||
icon: path.resolve(__dirname + '/../client/logo.png'),
|
||||
icon: path.resolve(__dirname + '/../assets/logo.png'),
|
||||
backgroundColor: options.color || theme.backgroundColor,
|
||||
type: options.type,
|
||||
fullscreen: options.fullscreen,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ express.get('*', function(req, res){
|
|||
} else {
|
||||
res.send('')
|
||||
}
|
||||
} else if (req.path.indexOf('client/') != -1){
|
||||
} else if (req.path.indexOf('assets/') != -1){
|
||||
res.sendFile(path.resolve(__dirname + '/..' + req.path))
|
||||
} else {
|
||||
res.sendFile(path.resolve(req.path))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue