mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(tmpl) mv index, auth to html
This commit is contained in:
parent
81a958c31a
commit
ae75d3449f
6 changed files with 7 additions and 6 deletions
|
|
@ -1,17 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<script>
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
window.opener
|
||||
.CloudCmd
|
||||
.GitHub
|
||||
.authorize(window.location.search);
|
||||
})();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src=//cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.10.2/dropbox.min.js></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
Dropbox.AuthDriver.Popup.oauthReceiver()
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<script src="/cloudcmd/join:modules/promise-polyfill/Promise.js:lib/util.js:lib/client/dom.js:lib/client/events.js:lib/client/load.js:lib/client/files.js:lib/client.js"></script>
|
||||
<script>
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
DOM.Files.get('modules', function(error, modules) {
|
||||
var URL = 'https://github.com/login/oauth/authorize?client_id=',
|
||||
Storage = Util.findObjByNameInArr(modules, 'storage'),
|
||||
GitHub = Util.findObjByNameInArr(Storage, 'GitHub'),
|
||||
GitHub_ID = GitHub && GitHub.key;
|
||||
|
||||
window.location =
|
||||
URL + GitHub_ID + '&&scope=repo,user,gist';
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<!-- mobile first design -->
|
||||
<meta content="width=device-width,initial-scale=1" name="viewport">
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<title>{{ title }}</title>
|
||||
|
||||
<link rel=stylesheet href=/cloudcmd/css/urls.css>
|
||||
<link rel=stylesheet href=/cloudcmd/join:css/reset.css:css/style.css:css/icons.css:css/help.css>
|
||||
|
||||
<noscript>
|
||||
<link rel=stylesheet href="/cloudcmd/css/nojs.css">
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div class=fm>{{ fm }}</div>
|
||||
<div id="js-keyspanel" class="keyspanel">
|
||||
<button id=f1 class="cmd-button reduce-text icon-help" title="help" >F1</button>
|
||||
<button id=f2 class="cmd-button reduce-text icon-rename" title="rename" >F2</button>
|
||||
<button id=f3 class="cmd-button reduce-text icon-view" title="view" >F3</button>
|
||||
<button id=f4 class="cmd-button reduce-text icon-edit " title="edit" >F4</button>
|
||||
<button id=f5 class="cmd-button reduce-text icon-copy" title="copy" >F5</button>
|
||||
<button id=f6 class="cmd-button reduce-text icon-move" title="move" >F6</button>
|
||||
<button id=f7 class="cmd-button reduce-text icon-directory" title="new directory" >F7</button>
|
||||
<button id=f8 class="cmd-button reduce-text icon-delete" title="delete" >F8</button>
|
||||
<button id=f9 class="cmd-button reduce-text icon-menu" title="menu" >F9</button>
|
||||
<button id=f10 class="cmd-button reduce-text icon-config" title="config" >F10</button>
|
||||
<button id=~ class="cmd-button reduce-text icon-console" title="console" >~</button>
|
||||
<button id=contact class="cmd-button reduce-text icon-contact" title="contact" ></button>
|
||||
</div>
|
||||
<script src="/cloudcmd/cloudcmd.js"></script>
|
||||
<script>
|
||||
!(function() {
|
||||
'use strict';
|
||||
|
||||
window.addEventListener('DOMContentLoaded', load);
|
||||
|
||||
function load() {
|
||||
window.removeEventListener('DOMContentLoaded', load);
|
||||
CloudCmd();
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue