diff options
-rwxr-xr-x | app.js | 2 | ||||
-rw-r--r-- | app/index.html | 19 | ||||
-rw-r--r-- | app/welcome.html | 6 |
3 files changed, 15 insertions, 12 deletions
@@ -35,7 +35,7 @@ router.get('/', function (req, res) { res.status(200).send(ejs.render(fs.readFil | |||
35 | 35 | ||
36 | app.use(morgan('dev')); | 36 | app.use(morgan('dev')); |
37 | app.use(compression()); | 37 | app.use(compression()); |
38 | app.use('/admin', express.static(__dirname + '/app')); | 38 | app.use('/_admin', express.static(__dirname + '/app')); |
39 | app.use(express.static(path.resolve(__dirname, process.argv[2] || 'files'))); | 39 | app.use(express.static(path.resolve(__dirname, process.argv[2] || 'files'))); |
40 | app.use(bodyParser.json()); | 40 | app.use(bodyParser.json()); |
41 | app.use(bodyParser.urlencoded({ extended: false, limit: '100mb' })); | 41 | app.use(bodyParser.urlencoded({ extended: false, limit: '100mb' })); |
diff --git a/app/index.html b/app/index.html index ab892f7..cf1f399 100644 --- a/app/index.html +++ b/app/index.html | |||
@@ -2,9 +2,9 @@ | |||
2 | <head> | 2 | <head> |
3 | <title> Cloudron Surfer </title> | 3 | <title> Cloudron Surfer </title> |
4 | 4 | ||
5 | <link rel="stylesheet" href="/admin/css/font-awesome.min.css"> | 5 | <link rel="stylesheet" href="/_admin/css/font-awesome.min.css"> |
6 | <link rel="stylesheet" href="/admin/css/bootstrap.min.css"> | 6 | <link rel="stylesheet" href="/_admin/css/bootstrap.min.css"> |
7 | <link rel="stylesheet" href="/admin/css/style.css"> | 7 | <link rel="stylesheet" href="/_admin/css/style.css"> |
8 | 8 | ||
9 | </head> | 9 | </head> |
10 | <body id="app"> | 10 | <body id="app"> |
@@ -125,14 +125,17 @@ | |||
125 | </tbody> | 125 | </tbody> |
126 | </table> | 126 | </table> |
127 | </div> | 127 | </div> |
128 | <div class="col-lg-12" style="text-align: right;"> | ||
129 | <button class="btn btn-default btn-sm" v-on:click="">Create Directory</button> | ||
130 | </div> | ||
128 | </div> | 131 | </div> |
129 | </div> | 132 | </div> |
130 | 133 | ||
131 | <script src="/admin/js/jquery-1.12.1.min.js"></script> | 134 | <script src="/_admin/js/jquery-1.12.1.min.js"></script> |
132 | <script src="/admin/js/bootstrap.min.js"></script> | 135 | <script src="/_admin/js/bootstrap.min.js"></script> |
133 | <script src="/admin/js/vue.min.js"></script> | 136 | <script src="/_admin/js/vue.min.js"></script> |
134 | <script src="/admin/js/superagent.js"></script> | 137 | <script src="/_admin/js/superagent.js"></script> |
135 | <script src="/admin/js/app.js"></script> | 138 | <script src="/_admin/js/app.js"></script> |
136 | 139 | ||
137 | </body> | 140 | </body> |
138 | </html> | 141 | </html> |
diff --git a/app/welcome.html b/app/welcome.html index b21fbbb..d85c2a0 100644 --- a/app/welcome.html +++ b/app/welcome.html | |||
@@ -2,15 +2,15 @@ | |||
2 | <head> | 2 | <head> |
3 | <title> Cloudron Surfer </title> | 3 | <title> Cloudron Surfer </title> |
4 | 4 | ||
5 | <link rel="stylesheet" href="/admin/css/bootstrap.min.css"> | 5 | <link rel="stylesheet" href="/_admin/css/bootstrap.min.css"> |
6 | <link rel="stylesheet" href="/admin/css/style.css"> | 6 | <link rel="stylesheet" href="/_admin/css/style.css"> |
7 | 7 | ||
8 | </head> | 8 | </head> |
9 | <body> | 9 | <body> |
10 | 10 | ||
11 | <div class="wrapper"> | 11 | <div class="wrapper"> |
12 | <div class="content"> | 12 | <div class="content"> |
13 | <img src="/admin/img/logo.png"/> | 13 | <img src="/_admin/img/logo.png"/> |
14 | <h1> Cloudron Surfer </h1> | 14 | <h1> Cloudron Surfer </h1> |
15 | <p> | 15 | <p> |
16 | Upload some files using the commandline tool. | 16 | Upload some files using the commandline tool. |