123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- <!DOCTYPE html>
- <html class="no-js">
- <head>
- <title>Codex</title>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-
- <link rel="stylesheet" href="../css/tomorrow-night-eighties.css">
- <link rel="stylesheet" href="../css/photon.min.css">
- <link rel="stylesheet" href="../css/codex.css">
-
- <script src="../bower_components/jquery/dist/jquery.js"></script>
- <script src="../bower_components/ace-builds/src-min-noconflict/ace.js"></script>
- <script src="../bower_components/angular/angular.js"></script>
- <script src="../bower_components/angular-ui-router/release/angular-ui-router.js"></script>
- <script src="../bower_components/angular-sanitize/angular-sanitize.js"></script>
- <script src="../bower_components/angular-ui-ace/ui-ace.js"></script>
- <script src="../bower_components/angular-highlightjs/src/angular-highlightjs.js"></script>
- <script src="scripts/highlight.pack.js"></script>
- <script src="scripts/codex-app.js"></script>
- <script src="scripts/controllers/app-ctrl.js"></script>
- <script src="scripts/controllers/header-ctrl.js"></script>
- <script src="scripts/controllers/footer-ctrl.js"></script>
- <script src="scripts/controllers/sidebar-ctrl.js"></script>
- <script src="scripts/controllers/note-view-ctrl.js"></script>
- <script src="scripts/controllers/note-edit-ctrl.js"></script>
- <script src="scripts/services/file-service.js"></script>
- <script src="scripts/services/search-service.js"></script>
- <script src="scripts/services/thumbnail-service.js"></script>
- <script src="scripts/services/prefs-service.js"></script>
- <script src="scripts/services/date-formatter.js" charset="utf-8"></script>
- <script src="scripts/directives/right-click-directive.js"></script>
- <script src="scripts/directives/ng-enter.js"></script>
- <script>
- var remote = require('remote');
- var ipc = require('ipc');
- var dialog = remote.require('dialog');
- var Menu = remote.require('menu');
- var template = [
- {
- label: 'Codex',
- submenu: [
- {
- label: 'About Codex',
- selector: 'orderFrontStandardAboutPanel:'
- },
- {
- type: 'separator'
- },
- {
- label: 'Preferences',
- accelerator: 'CommandOrControl+,',
- click: function () {
- ipc.send('show-preferences-window')
- }
- },
- {
- type: 'separator'
- },
- {
- label: 'Services',
- submenu: []
- },
- {
- type: 'separator'
- },
- {
- label: 'Hide Codex',
- accelerator: 'Command+H',
- selector: 'hide:'
- },
- {
- label: 'Hide Others',
- accelerator: 'Command+Shift+H',
- selector: 'hideOtherApplications:'
- },
- {
- label: 'Show All',
- selector: 'unhideAllApplications:'
- },
- {
- type: 'separator'
- },
- {
- label: 'Quit',
- accelerator: 'Command+Q',
- selector: 'terminate:'
- },
- ]
- },
- {
- label: 'Edit',
- submenu: [
- {
- label: 'Undo',
- accelerator: 'Command+Z',
- selector: 'undo:'
- },
- {
- label: 'Redo',
- accelerator: 'Shift+Command+Z',
- selector: 'redo:'
- },
- {
- type: 'separator'
- },
- {
- label: 'Cut',
- accelerator: 'Command+X',
- selector: 'cut:'
- },
- {
- label: 'Copy',
- accelerator: 'Command+C',
- selector: 'copy:'
- },
- {
- label: 'Paste',
- accelerator: 'Command+V',
- selector: 'paste:'
- },
- {
- label: 'Select All',
- accelerator: 'Command+A',
- selector: 'selectAll:'
- }
- ]
- },
- {
- label: 'View',
- submenu: [
- {
- label: 'Reload',
- accelerator: 'Command+R',
- click: function() { remote.getCurrentWindow().reload(); }
- },
- {
- label: 'Toggle DevTools',
- accelerator: 'Alt+Command+I',
- click: function() { remote.getCurrentWindow().toggleDevTools(); }
- },
- ]
- },
- {
- label: 'Window',
- submenu: [
- {
- label: 'Minimize',
- accelerator: 'Command+M',
- selector: 'performMiniaturize:'
- },
- {
- label: 'Close',
- accelerator: 'Command+W',
- selector: 'performClose:'
- },
- {
- type: 'separator'
- },
- {
- label: 'Bring All to Front',
- selector: 'arrangeInFront:'
- }
- ]
- },
- {
- label: 'Help',
- submenu: []
- }
- ];
- menu = Menu.buildFromTemplate(template);
- Menu.setApplicationMenu(menu);
- </script>
- </head>
- <body ng-app="codexApp">
- <div class="window">
- <header class="toolbar toolbar-header" ng-controller="HeaderCtrl">
- <h1 class="title">Codex</h1>
- <div class="toolbar-actions">
- <button class="btn btn-default" ng-click="goToHome()">
- <span class="icon icon-home"></span>
- </button>
- <div class="btn-group">
- <button class="btn btn-default" ng-click="goBack()">
- <span class="icon icon-left"></span>
- </button>
- <button class="btn btn-default" ng-click="goForward()">
- <span class="icon icon-right"></span>
- </button>
- </div>
- <button class="btn btn-default" ng-click="createNewNote()">
- <span class="icon icon-plus"></span>
- </button>
- <button class="btn btn-default" ng-click="toogleSidebar()">
- <span class="icon icon-list"></span>
- </button>
- <div class="btn-group pull-right">
- <button class="btn btn-default" ng-class="noteEditBtnClass" ng-click="activateNoteEdit()">
- <span class="icon icon-pencil"></span>
- </button>
- <button class="btn btn-default" ng-class="noteViewBtnClass" ng-click="activateNoteView()">
- <span class="icon icon-eye"></span>
- </button>
- </div>
- <div class="btn-group pull-right">
- <form>
- <div class="form-group">
- <input type="text" ng-model="search_text" ng-enter="fileSearch()" class="form-control" placeholder="Search" style="height: 24px;">
- </div>
- </form>
- </div>
- </div>
- </header>
-
- <div class="window-content" id="holder">
- <div class="pane-group">
- <div class="pane pane-sm sidebar" ng-controller="SidebarCtrl" ng-show="showSidebar">
- <nav class="nav-group">
- <h5 class="nav-group-title">My Notes</h5>
- <span class="nav-group-item" ng-class="sidebar[0].active" ng-click="goToAllNotes()">
- <span class="icon icon-folder"></span>
- All Notes
- </span>
- <span class="nav-group-item" ng-class="sidebar[1].active" ng-click="goToAllFiles()">
- <span class="icon icon-archive"></span>
- All Files
- </span>
- <span class="nav-group-item" ng-class="sidebar[2].active" ng-click="goToNotebooks()">
- <span class="icon icon-book"></span>
- Notebooks
- </span>
- <h5 class="nav-group-title">Favorites</h5>
- <span class="nav-group-item">
- <span class="icon icon-star"></span>
- Starred
- </span>
- </nav>
- </div>
- <div class="pane" ui-view ></div>
- </div>
- </div>
- <footer class="toolbar toolbar-footer" ng-controller="FooterCtrl">
- <h1 class="title">{{footer_info}}</h1>
- </footer>
- </div>
- </body>
- </html>
|