-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
95 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ htdocs | |
lib | ||
themes.css | ||
*.appcache | ||
.wq-pgb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<widget xmlns = "http://www.w3.org/ns/widgets" | ||
xmlns:gap = "http://phonegap.com/ns/1.0" | ||
id = "{{ app_id }}" | ||
version = "{% templatetag openvariable %}version{% templatetag closevariable %}" > | ||
<name>{{ project_name }} Project</name> | ||
<description>{{ project_name }} Project</description> | ||
</widget> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>{{ project_name }} Project</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=yes" /> | ||
<link rel="stylesheet" href="css/{{ project_name }}.css"> | ||
<script src="cordova.js"></script> | ||
<script src="js/lib/require.js"></script> | ||
<script> | ||
function getBaseUrl() { | ||
var baseurl = window.location.pathname.replace("index.html",''); | ||
baseurl = baseurl.replace(/\/$/,''); | ||
if (baseurl == 'www') { | ||
// Windows | ||
baseurl = '/www'; | ||
} | ||
return baseurl; | ||
} | ||
|
||
require.config({ | ||
'config': { | ||
'{{ project_name }}/config': { | ||
'router': { | ||
'base_url': getBaseUrl() | ||
}, | ||
'store': { | ||
'service': 'https://{{ domain }}', | ||
'defaults': {'format': 'json'} | ||
}, | ||
} | ||
} | ||
}); | ||
require(['js/{{ project_name }}'], function() { | ||
require(['{{ project_name }}/main', 'wq/app'], function(ready, app) { | ||
ready.then(function() { | ||
app.nav(''); | ||
}); | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<p style='text-align: center'> | ||
<a href="./"> | ||
<img src='images/icon-512.png' style='max-width: 80%;'> | ||
</a> | ||
</p> | ||
<p class="footer"> | ||
{{ project_name }} v{% templatetag openvariable %}version{% templatetag closevariable %} | ||
• | ||
Powered by <a href="https://wq.io/">wq</a> | ||
</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters