diff --git a/node/app.js b/node/app.js index a5af9b01f..9c7fc5bcc 100644 --- a/node/app.js +++ b/node/app.js @@ -8,7 +8,7 @@ const helmet = require('helmet'); const session = require('express-session'); const FileStore = require('session-file-store')(session); -const appRoute = require('./routes/app'); +const indexRoute = require('./routes/index'); const loginRoute = require('./routes/login'); const logoutRoute = require('./routes/logout'); const migrationRoute = require('./routes/migration'); @@ -59,7 +59,7 @@ app.use(session({ // uncomment after placing your favicon in /public //app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); -app.use('/app', appRoute); +app.use('/', indexRoute); app.use('/login', loginRoute); app.use('/logout', logoutRoute); app.use('/migration', migrationRoute); diff --git a/node/package.json b/node/package.json index 344ed3d55..5947455a9 100644 --- a/node/package.json +++ b/node/package.json @@ -20,7 +20,6 @@ "scrypt": "^6.0.3", "serve-favicon": "~2.4.5", "session-file-store": "^1.1.2", - // https://github.com/kriasoft/node-sqlite "sqlite": "^2.8.0" } } diff --git a/node/routes/app.js b/node/routes/index.js similarity index 87% rename from node/routes/app.js rename to node/routes/index.js index 91887dbfc..a91b533c3 100644 --- a/node/routes/app.js +++ b/node/routes/index.js @@ -3,7 +3,7 @@ const router = express.Router(); const auth = require('../auth'); router.get('', auth.checkAuth, (req, res, next) => { - res.render('app', {}); + res.render('index', {}); }); module.exports = router; diff --git a/node/views/app.ejs b/node/views/app.ejs deleted file mode 100644 index d7777c0ab..000000000 --- a/node/views/app.ejs +++ /dev/null @@ -1,276 +0,0 @@ - - - - - Trilium - - -
- - -
- - Create new top level note - - - - Collapse tree - - - - Collapse tree - - - - Search in notes - - - -
- -
-
- -
-
- - - - -   - - - - -
-
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/node/views/index.ejs b/node/views/index.ejs index 7b7a1d6de..d7777c0ab 100644 --- a/node/views/index.ejs +++ b/node/views/index.ejs @@ -1,11 +1,276 @@ - + - <%= title %> - + + Trilium -

<%= title %>

-

Welcome to <%= title %>

+
+ + +
+ + Create new top level note + + + + Collapse tree + + + + Collapse tree + + + + Search in notes + + + +
+ +
+
+ +
+
+ + + + +   + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + \ No newline at end of file