- major style refactoring, we're going flat flat flat
- stylesheets splitting ! - removed sync.sass.js and css recompile switch : now using node sass and watcher during dev - no need to restart the whole app now, ctrl+r just refreshes the window
This commit is contained in:
parent
417436bc34
commit
bbb1080b93
36 changed files with 3309 additions and 2548 deletions
17
main/main.js
17
main/main.js
|
|
@ -1,23 +1,6 @@
|
|||
var fs = require('fs'),
|
||||
settings = require('./settings')(fs)
|
||||
|
||||
|
||||
if (settings.read('compileScss')) {
|
||||
var sass = require(__dirname + '/../browser/js/sass/sass.sync.js')
|
||||
var filenames = fs.readdirSync(__dirname + '/../browser/scss/')
|
||||
for (i in filenames) {
|
||||
if (filenames[i].indexOf('.scss')!=-1)
|
||||
var file = __dirname + '/../browser/scss/' + filenames[i]
|
||||
var light = settings.read('lightTheme')?'$theme:\'light\';':'$theme:\'dark\';'
|
||||
var content = fs.readFileSync(file,'utf8')
|
||||
sass.compile(light+content,{style: sass.style.compact,linefeed: ''}, function(result) {
|
||||
fs.writeFileSync(__dirname + '/../browser/css/'+filenames[i].replace('.scss','.css'),result.text,'utf8')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!settings.read('noGui')) {
|
||||
|
||||
var app = require('app'),
|
||||
|
|
|
|||
|
|
@ -29,10 +29,8 @@ module.exports = function(settings,app,ipc,browserWindow) {
|
|||
label: 'Restart',
|
||||
accelerator: 'CmdOrCtrl+R',
|
||||
click: function(){
|
||||
var exec = require('child_process').exec
|
||||
exec(process.argv.join(' '))
|
||||
app.quit()
|
||||
}// function() { window.reload(); }//restartApp
|
||||
window.reload()
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Toggle DevTools',
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ var argv = require('yargs')
|
|||
.help('help').usage(`\nUsage:\n $0 [options]`).alias('h', 'help')
|
||||
.options({
|
||||
's':{alias:'sync',type:'array',describe:'synchronized hosts (ip:port pairs)'},
|
||||
'c':{alias:'compile',type:'string',describe:'recompile stylesheets (increases startup time)'},
|
||||
'l':{alias:'load',type:'string',describe:'session file to load'},
|
||||
'p':{alias:'port',describe:'osc input port (for synchronization)'},
|
||||
'n':{alias:'nogui',describe:'disable default gui and makes the app availabe through http on specified port'},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue