Commit 20fc05be authored by Mihkel Putrinš's avatar Mihkel Putrinš

last version with mmmagic

parent b02d83d1
......@@ -18,9 +18,9 @@ var pjson_path = path.join(__dirname, '..', 'package.json')
var pjson = require(pjson_path)
if (IS_DEV) {
pjson.build++
console.log('----==== ' + pjson.name + ' v.' + pjson.version + ' (build ' + (pjson.build) + ') ====----')
fs.writeFileSync(pjson_path, JSON.stringify(pjson, null, 4))
}
console.log('----==== ' + pjson.name + ' v.' + pjson.version + ' (build ' + (pjson.build) + ') ====----')
app.on('ready', function() {
USER_PATH = path.join(app.getPath('temp'), 'user.json')
......@@ -55,10 +55,10 @@ app.on('ready', function() {
mainWindow = new BrowserWindow({ width: 900, height: 600, show: true, "web-preferences": web_preferences })
mainWindow.setTitle('Panustaja')
mainWindow.center()
var view_path = path.join(app.getAppPath(), 'code', 'main.html')
var view_path = path.join(app.getAppPath(), 'code', 'panu_view.html')
mainWindow.webContents.loadUrl('file://' + view_path)
if (IS_DEV) {
mainWindow.webContents.openDevTools(true)
if (IS_DEV) {
}
windows['authWindow'].close()
delete windows['authWindow']
......@@ -81,14 +81,14 @@ ipc.on('setTitle', function(event, message) {
})
var user_data = false
console.log('user_data: ' + JSON.stringify(user_data, null, 4))
// console.log('user_data: ' + JSON.stringify(user_data, null, 4))
ipc.on('setUser', function(event, data) {
user_data = data
console.log('setUser: ' + JSON.stringify(user_data, null, 4))
// console.log('setUser: ' + JSON.stringify(user_data, null, 4))
})
ipc.on('getUser', function(event, msg) {
event.returnValue = user_data
console.log('getUser: ' + JSON.stringify(user_data, null, 4))
// console.log('getUser: ' + JSON.stringify(user_data, null, 4))
})
app.on('window-all-closed', function() {
......
doctype html
html
head
meta(charset='utf-8')
link(rel='stylesheet', type='text/css', href='./style.css')
link(rel='icon' type='image/png', href='/favicon-96x96.png' sizes='96x96')
link(rel='shortcut icon', href='/favicon.ico')
body
h1#userName() Tere
div#selectLocal(hidden)
p#selectLocalMessage Palun vali fail(id) ja/või kataloog(id), mida soovid üles laadida.
button#selectLocalButton(onclick='selectLocal()') Vali
div#resourceName(hidden='')
p#resourceNameMessage Muuda ressursi nimi sobivaks.
input#resourceNameInput(type='text' placeholder='Ressursi nimi' style='width:100%;')
div#loading(hidden='')
h3 Loen failisüsteemist ...
div#resourceStats(hidden='')
ul#resourceStatsList
li#resourceDirectories
li#resourceFiles
ul#mimeStats
div#uploadResource(hidden='')
p#uploadResourceMessage Ressurss on üleslaadimiseks valmis.
button#uploadResourceButton(onclick='uploadResource()') Panusta!
div#uploading(hidden='')
span= 'Kataloogid: '
span#uploadedResources 0
span /
span#uploadTotalResources 0
div#resourceProgressbarOuter
div#resourceProgressbarInner
div#fileProgressbarInner
span= 'Failid: '
span#uploadedSize 0
span /
span#uploadTotalSize 0
//- div#fileProgressbarOuter
pre#status
div#thankYou(hidden='') Aitäh!
script(src='./main.js')
......@@ -3,10 +3,15 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./style.css">
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="icon" type="image/png" href="/images/murakas.ico" sizes="96x96">
<link rel="shortcut icon" href="/images/murakas.ico">
</head>
<body>
<div id="murakas">
<img src="../images/murakas/png/96x96.png">
<br/>
Panustaja
</div>
<h1 id="userName">Tere</h1>
<div id="selectLocal" hidden>
<p id="selectLocalMessage">Palun vali fail(id) ja/või kataloog(id), mida soovid üles laadida.</p>
......@@ -45,6 +50,6 @@
<a id="resource_entu_link">siin</a>
</div>
</div>
<script src="./main.js"></script>
<script src="./manu.js"></script>
</body>
</html>
......@@ -26,3 +26,28 @@
background-color: #0065CA;
/*border: 0px solid green;*/
}
#murakas {
text-align: center;
font: caption;
margin: 0px;
position: fixed;
top: 1em;
right: 1em;
}
body
{
font: caption;
color: WindowText;
background-color: Window;
/*border: 2px solid ActiveBorder;*/
}
h1
{
font: caption;
color: WindowText;
}
/*leave 2 pixels of space between a focus outline and the element that has the focus or is active*/
:focus,:active { outline-offset: 2px }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment