package: rename browser to client and main to server
This commit is contained in:
parent
ea142198e0
commit
e8b2a3fb99
123 changed files with 43 additions and 42 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -1,9 +1,9 @@
|
|||
node_modules
|
||||
dist
|
||||
app/LICENSE
|
||||
app/browser/*.css*
|
||||
app/browser/*.png
|
||||
app/browser/*.js*
|
||||
app/client/*.css*
|
||||
app/client/*.png
|
||||
app/client/*.js*
|
||||
app/launcher/*.js*
|
||||
app/main/*.js*
|
||||
app/server/*.js*
|
||||
package-lock.json
|
||||
|
|
|
|||
|
|
@ -1,26 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no"/>
|
||||
<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="browser/fonts/fa-solid-900.woff" as="font"/>
|
||||
<link rel="preload" href="browser/fonts/roboto-medium.woff" as="font"/>
|
||||
<link rel="stylesheet" type="text/css" href="browser/open-stage-control.css" hot-reload/>
|
||||
<link rel="stylesheet" type="text/css" href="browser/theme.css" hot-reload/>
|
||||
<link rel="stylesheet" type="text/css" href="browser/fonts/fontawesome.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="browser/fonts/fa-solid.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="browser/fonts/roboto-medium.css"/>
|
||||
<script src="browser/open-stage-control-client.js"></script>
|
||||
<link rel="shortcut icon" href="browser/favicon.png?2"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
<div id="sidepanel"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
26
app/client/index.html
Normal file
26
app/client/index.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no"/>
|
||||
<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"/>
|
||||
<script src="client/open-stage-control-client.js"></script>
|
||||
<link rel="shortcut icon" href="browser/favicon.png?2"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
<div id="sidepanel"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -1 +1 @@
|
|||
require('./main/open-stage-control-server')
|
||||
require('./server/open-stage-control-server')
|
||||
|
|
|
|||
|
|
@ -76,11 +76,12 @@
|
|||
"deb64": "electron-installer-debian --src dist/open-stage-control-linux-x64/ --arch amd64 --dest dist/open-stage-control-linux-x64/ --icon resources/images/logo.png",
|
||||
"debarm": "electron-installer-debian --src dist/open-stage-control-linux-armv7l/ --arch armv7l --dest dist/open-stage-control-linux-armv7l/ --icon resources/images/logo.png",
|
||||
"build-css": "node scripts/build-css.js",
|
||||
"build-js": "npm run build-launcher-js && npm run build-browser-js -- --prod && npm run build-main-js",
|
||||
"build-browser-js": "node scripts/build-browser.js",
|
||||
"build-js": "npm run build-launcher-js && npm run build-client-js -- --prod && npm run build-main-js",
|
||||
"build-client-js": "node scripts/build-client.js",
|
||||
"build-launcher-js": "node scripts/build-launcher.js",
|
||||
"build-main-js": "node scripts/build-main.js",
|
||||
"watch-browser": "npm run build-browser-js -- --watch",
|
||||
"watch-client": "npm run build-client-js -- --watch",
|
||||
"watch-browser": "npm run build-client-js -- --watch",
|
||||
"watch-css": "nodemon --watch src/scss -e scss -x \"npm run build-css -- --reload",
|
||||
"deploy-docs": "node scripts/build-widgets-reference.js > resources/docs/widgets-reference.md && cd resources && mkdocs gh-deploy --clean && rm -rf site",
|
||||
"test": "npm run build"
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ if (prod) {
|
|||
}
|
||||
|
||||
var bundle = build({
|
||||
input: '../src/browser/index.js',
|
||||
output: '../app/browser/open-stage-control-client.js',
|
||||
input: '../src/client/index.js',
|
||||
output: '../app/client/index.js',
|
||||
options: {
|
||||
debug: true,
|
||||
insertGlobals: false,
|
||||
|
|
@ -3,7 +3,7 @@ var sass = require('node-sass'),
|
|||
fs = require('fs')
|
||||
|
||||
var indir = path.resolve(__dirname + '/../src/scss/'),
|
||||
outdir= path.resolve(__dirname + '/../app/browser/')
|
||||
outdir= path.resolve(__dirname + '/../app/client/')
|
||||
|
||||
fs.readdirSync(indir + '/themes/').forEach(file => {
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Object.assign(global, window)
|
|||
|
||||
// Required globals
|
||||
|
||||
DOM = require('../src/browser/app/dom')
|
||||
DOM = require('../src/client/app/dom')
|
||||
DOM.get = x=>[{addEventListener:()=>{}}]
|
||||
DOM.init()
|
||||
CANVAS_FRAMERATE = 1
|
||||
|
|
@ -41,8 +41,8 @@ LANG = 'en'
|
|||
|
||||
// Here we go
|
||||
|
||||
var widgets = require('../src/browser/app/widgets'),
|
||||
baseClass = require('../src/browser/app/widgets/common/widget'),
|
||||
var widgets = require('../src/client/app/widgets'),
|
||||
baseClass = require('../src/client/app/widgets/common/widget'),
|
||||
base = baseClass.defaults(),
|
||||
doc = []
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue