diff options
author | Johannes Zellner <johannes@cloudron.io> | 2017-02-05 06:14:47 -0800 |
---|---|---|
committer | Johannes Zellner <johannes@cloudron.io> | 2017-02-05 06:14:47 -0800 |
commit | 95e5eb9f0fa59001bc6ffd2baa4ddfd861e40122 (patch) | |
tree | 9187aab36843c95213ce8af3f4b336df9af5b383 | |
parent | 89f67d31a2be9a504c3f8215952c31ef1d72e20d (diff) | |
download | Surfer-95e5eb9f0fa59001bc6ffd2baa4ddfd861e40122.tar.gz Surfer-95e5eb9f0fa59001bc6ffd2baa4ddfd861e40122.tar.zst Surfer-95e5eb9f0fa59001bc6ffd2baa4ddfd861e40122.zip |
Rename app/ to frontend/
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | frontend/css/bootstrap.css (renamed from app/css/bootstrap.css) | 0 | ||||
-rw-r--r-- | frontend/css/bootstrap.css.map (renamed from app/css/bootstrap.css.map) | 0 | ||||
-rw-r--r-- | frontend/css/bootstrap.min.css (renamed from app/css/bootstrap.min.css) | 0 | ||||
-rw-r--r-- | frontend/css/bootstrap.min.css.map (renamed from app/css/bootstrap.min.css.map) | 0 | ||||
-rw-r--r-- | frontend/css/font-awesome.css (renamed from app/css/font-awesome.css) | 0 | ||||
-rw-r--r-- | frontend/css/font-awesome.min.css (renamed from app/css/font-awesome.min.css) | 0 | ||||
-rw-r--r-- | frontend/css/style.css (renamed from app/css/style.css) | 0 | ||||
-rw-r--r-- | frontend/fonts/FontAwesome.otf (renamed from app/fonts/FontAwesome.otf) | bin | 109688 -> 109688 bytes | |||
-rw-r--r-- | frontend/fonts/fontawesome-webfont.eot (renamed from app/fonts/fontawesome-webfont.eot) | bin | 70807 -> 70807 bytes | |||
-rw-r--r-- | frontend/fonts/fontawesome-webfont.svg (renamed from app/fonts/fontawesome-webfont.svg) | 0 | ||||
-rw-r--r-- | frontend/fonts/fontawesome-webfont.ttf (renamed from app/fonts/fontawesome-webfont.ttf) | bin | 142072 -> 142072 bytes | |||
-rw-r--r-- | frontend/fonts/fontawesome-webfont.woff (renamed from app/fonts/fontawesome-webfont.woff) | bin | 83588 -> 83588 bytes | |||
-rw-r--r-- | frontend/fonts/fontawesome-webfont.woff2 (renamed from app/fonts/fontawesome-webfont.woff2) | bin | 66624 -> 66624 bytes | |||
-rw-r--r-- | frontend/fonts/glyphicons-halflings-regular.eot (renamed from app/fonts/glyphicons-halflings-regular.eot) | bin | 20127 -> 20127 bytes | |||
-rw-r--r-- | frontend/fonts/glyphicons-halflings-regular.svg (renamed from app/fonts/glyphicons-halflings-regular.svg) | 0 | ||||
-rw-r--r-- | frontend/fonts/glyphicons-halflings-regular.ttf (renamed from app/fonts/glyphicons-halflings-regular.ttf) | bin | 45404 -> 45404 bytes | |||
-rw-r--r-- | frontend/fonts/glyphicons-halflings-regular.woff (renamed from app/fonts/glyphicons-halflings-regular.woff) | bin | 23424 -> 23424 bytes | |||
-rw-r--r-- | frontend/fonts/glyphicons-halflings-regular.woff2 (renamed from app/fonts/glyphicons-halflings-regular.woff2) | bin | 18028 -> 18028 bytes | |||
-rw-r--r-- | frontend/img/directory.png (renamed from app/img/directory.png) | bin | 888 -> 888 bytes | |||
-rw-r--r-- | frontend/img/html.png (renamed from app/img/html.png) | bin | 3744 -> 3744 bytes | |||
-rw-r--r-- | frontend/img/image.png (renamed from app/img/image.png) | bin | 2218 -> 2218 bytes | |||
-rw-r--r-- | frontend/img/logo.png (renamed from app/img/logo.png) | bin | 7189 -> 7189 bytes | |||
-rw-r--r-- | frontend/img/pdf.png (renamed from app/img/pdf.png) | bin | 3221 -> 3221 bytes | |||
-rw-r--r-- | frontend/img/text.png (renamed from app/img/text.png) | bin | 1673 -> 1673 bytes | |||
-rw-r--r-- | frontend/img/unknown.png (renamed from app/img/unknown.png) | bin | 1416 -> 1416 bytes | |||
-rw-r--r-- | frontend/img/video.png (renamed from app/img/video.png) | bin | 1638 -> 1638 bytes | |||
-rw-r--r-- | frontend/index.html (renamed from app/index.html) | 0 | ||||
-rw-r--r-- | frontend/js/app.js (renamed from app/js/app.js) | 0 | ||||
-rw-r--r-- | frontend/js/bootstrap.js (renamed from app/js/bootstrap.js) | 0 | ||||
-rw-r--r-- | frontend/js/bootstrap.min.js (renamed from app/js/bootstrap.min.js) | 0 | ||||
-rw-r--r-- | frontend/js/filesize.min.js (renamed from app/js/filesize.min.js) | 0 | ||||
-rw-r--r-- | frontend/js/jquery-1.12.1.min.js (renamed from app/js/jquery-1.12.1.min.js) | 0 | ||||
-rw-r--r-- | frontend/js/npm.js (renamed from app/js/npm.js) | 0 | ||||
-rw-r--r-- | frontend/js/superagent.js (renamed from app/js/superagent.js) | 0 | ||||
-rw-r--r-- | frontend/js/vue.min.js (renamed from app/js/vue.min.js) | 0 | ||||
-rw-r--r-- | frontend/welcome.html (renamed from app/welcome.html) | 0 | ||||
-rwxr-xr-x | server.js | 4 |
38 files changed, 3 insertions, 3 deletions
@@ -7,7 +7,7 @@ RUN mkdir -p /app/code | |||
7 | WORKDIR /app/code | 7 | WORKDIR /app/code |
8 | 8 | ||
9 | ADD src /app/code/src | 9 | ADD src /app/code/src |
10 | ADD app /app/code/app | 10 | ADD frontend /app/code/frontend |
11 | ADD cli /app/code/cli | 11 | ADD cli /app/code/cli |
12 | 12 | ||
13 | ADD package.json server.js start.sh README.md /app/code/ | 13 | ADD package.json server.js start.sh README.md /app/code/ |
diff --git a/app/css/bootstrap.css b/frontend/css/bootstrap.css index 42c79d6..42c79d6 100644 --- a/app/css/bootstrap.css +++ b/frontend/css/bootstrap.css | |||
diff --git a/app/css/bootstrap.css.map b/frontend/css/bootstrap.css.map index 09f8cda..09f8cda 100644 --- a/app/css/bootstrap.css.map +++ b/frontend/css/bootstrap.css.map | |||
diff --git a/app/css/bootstrap.min.css b/frontend/css/bootstrap.min.css index 54ad011..54ad011 100644 --- a/app/css/bootstrap.min.css +++ b/frontend/css/bootstrap.min.css | |||
diff --git a/app/css/bootstrap.min.css.map b/frontend/css/bootstrap.min.css.map index 5f49bb3..5f49bb3 100644 --- a/app/css/bootstrap.min.css.map +++ b/frontend/css/bootstrap.min.css.map | |||
diff --git a/app/css/font-awesome.css b/frontend/css/font-awesome.css index b2a5fe2..b2a5fe2 100644 --- a/app/css/font-awesome.css +++ b/frontend/css/font-awesome.css | |||
diff --git a/app/css/font-awesome.min.css b/frontend/css/font-awesome.min.css index d0603cb..d0603cb 100644 --- a/app/css/font-awesome.min.css +++ b/frontend/css/font-awesome.min.css | |||
diff --git a/app/css/style.css b/frontend/css/style.css index 05336ab..05336ab 100644 --- a/app/css/style.css +++ b/frontend/css/style.css | |||
diff --git a/app/fonts/FontAwesome.otf b/frontend/fonts/FontAwesome.otf index 3ed7f8b..3ed7f8b 100644 --- a/app/fonts/FontAwesome.otf +++ b/frontend/fonts/FontAwesome.otf | |||
Binary files differ | |||
diff --git a/app/fonts/fontawesome-webfont.eot b/frontend/fonts/fontawesome-webfont.eot index 9b6afae..9b6afae 100644 --- a/app/fonts/fontawesome-webfont.eot +++ b/frontend/fonts/fontawesome-webfont.eot | |||
Binary files differ | |||
diff --git a/app/fonts/fontawesome-webfont.svg b/frontend/fonts/fontawesome-webfont.svg index d05688e..d05688e 100644 --- a/app/fonts/fontawesome-webfont.svg +++ b/frontend/fonts/fontawesome-webfont.svg | |||
diff --git a/app/fonts/fontawesome-webfont.ttf b/frontend/fonts/fontawesome-webfont.ttf index 26dea79..26dea79 100644 --- a/app/fonts/fontawesome-webfont.ttf +++ b/frontend/fonts/fontawesome-webfont.ttf | |||
Binary files differ | |||
diff --git a/app/fonts/fontawesome-webfont.woff b/frontend/fonts/fontawesome-webfont.woff index dc35ce3..dc35ce3 100644 --- a/app/fonts/fontawesome-webfont.woff +++ b/frontend/fonts/fontawesome-webfont.woff | |||
Binary files differ | |||
diff --git a/app/fonts/fontawesome-webfont.woff2 b/frontend/fonts/fontawesome-webfont.woff2 index 500e517..500e517 100644 --- a/app/fonts/fontawesome-webfont.woff2 +++ b/frontend/fonts/fontawesome-webfont.woff2 | |||
Binary files differ | |||
diff --git a/app/fonts/glyphicons-halflings-regular.eot b/frontend/fonts/glyphicons-halflings-regular.eot index b93a495..b93a495 100644 --- a/app/fonts/glyphicons-halflings-regular.eot +++ b/frontend/fonts/glyphicons-halflings-regular.eot | |||
Binary files differ | |||
diff --git a/app/fonts/glyphicons-halflings-regular.svg b/frontend/fonts/glyphicons-halflings-regular.svg index 94fb549..94fb549 100644 --- a/app/fonts/glyphicons-halflings-regular.svg +++ b/frontend/fonts/glyphicons-halflings-regular.svg | |||
diff --git a/app/fonts/glyphicons-halflings-regular.ttf b/frontend/fonts/glyphicons-halflings-regular.ttf index 1413fc6..1413fc6 100644 --- a/app/fonts/glyphicons-halflings-regular.ttf +++ b/frontend/fonts/glyphicons-halflings-regular.ttf | |||
Binary files differ | |||
diff --git a/app/fonts/glyphicons-halflings-regular.woff b/frontend/fonts/glyphicons-halflings-regular.woff index 9e61285..9e61285 100644 --- a/app/fonts/glyphicons-halflings-regular.woff +++ b/frontend/fonts/glyphicons-halflings-regular.woff | |||
Binary files differ | |||
diff --git a/app/fonts/glyphicons-halflings-regular.woff2 b/frontend/fonts/glyphicons-halflings-regular.woff2 index 64539b5..64539b5 100644 --- a/app/fonts/glyphicons-halflings-regular.woff2 +++ b/frontend/fonts/glyphicons-halflings-regular.woff2 | |||
Binary files differ | |||
diff --git a/app/img/directory.png b/frontend/img/directory.png index 8630079..8630079 100644 --- a/app/img/directory.png +++ b/frontend/img/directory.png | |||
Binary files differ | |||
diff --git a/app/img/html.png b/frontend/img/html.png index 51153ea..51153ea 100644 --- a/app/img/html.png +++ b/frontend/img/html.png | |||
Binary files differ | |||
diff --git a/app/img/image.png b/frontend/img/image.png index 22939ff..22939ff 100644 --- a/app/img/image.png +++ b/frontend/img/image.png | |||
Binary files differ | |||
diff --git a/app/img/logo.png b/frontend/img/logo.png index 7907e98..7907e98 100644 --- a/app/img/logo.png +++ b/frontend/img/logo.png | |||
Binary files differ | |||
diff --git a/app/img/pdf.png b/frontend/img/pdf.png index 95e2308..95e2308 100644 --- a/app/img/pdf.png +++ b/frontend/img/pdf.png | |||
Binary files differ | |||
diff --git a/app/img/text.png b/frontend/img/text.png index daf010d..daf010d 100644 --- a/app/img/text.png +++ b/frontend/img/text.png | |||
Binary files differ | |||
diff --git a/app/img/unknown.png b/frontend/img/unknown.png index c5dac42..c5dac42 100644 --- a/app/img/unknown.png +++ b/frontend/img/unknown.png | |||
Binary files differ | |||
diff --git a/app/img/video.png b/frontend/img/video.png index 6c01aea..6c01aea 100644 --- a/app/img/video.png +++ b/frontend/img/video.png | |||
Binary files differ | |||
diff --git a/app/index.html b/frontend/index.html index 80f9bdd..80f9bdd 100644 --- a/app/index.html +++ b/frontend/index.html | |||
diff --git a/app/js/app.js b/frontend/js/app.js index 9a2e532..9a2e532 100644 --- a/app/js/app.js +++ b/frontend/js/app.js | |||
diff --git a/app/js/bootstrap.js b/frontend/js/bootstrap.js index 01fbbcb..01fbbcb 100644 --- a/app/js/bootstrap.js +++ b/frontend/js/bootstrap.js | |||
diff --git a/app/js/bootstrap.min.js b/frontend/js/bootstrap.min.js index e79c065..e79c065 100644 --- a/app/js/bootstrap.min.js +++ b/frontend/js/bootstrap.min.js | |||
diff --git a/app/js/filesize.min.js b/frontend/js/filesize.min.js index 9e0d3df..9e0d3df 100644 --- a/app/js/filesize.min.js +++ b/frontend/js/filesize.min.js | |||
diff --git a/app/js/jquery-1.12.1.min.js b/frontend/js/jquery-1.12.1.min.js index a5195a3..a5195a3 100644 --- a/app/js/jquery-1.12.1.min.js +++ b/frontend/js/jquery-1.12.1.min.js | |||
diff --git a/app/js/npm.js b/frontend/js/npm.js index bf6aa80..bf6aa80 100644 --- a/app/js/npm.js +++ b/frontend/js/npm.js | |||
diff --git a/app/js/superagent.js b/frontend/js/superagent.js index 140bc4d..140bc4d 100644 --- a/app/js/superagent.js +++ b/frontend/js/superagent.js | |||
diff --git a/app/js/vue.min.js b/frontend/js/vue.min.js index 83ebfd7..83ebfd7 100644 --- a/app/js/vue.min.js +++ b/frontend/js/vue.min.js | |||
diff --git a/app/welcome.html b/frontend/welcome.html index 8031e27..8031e27 100644 --- a/app/welcome.html +++ b/frontend/welcome.html | |||
@@ -29,13 +29,13 @@ router.delete('/api/files/*', auth.verify, files.del); | |||
29 | router.get ('/api/healthcheck', function (req, res) { res.status(200).send(); }); | 29 | router.get ('/api/healthcheck', function (req, res) { res.status(200).send(); }); |
30 | 30 | ||
31 | // welcome screen in case / does not serve up any file yet | 31 | // welcome screen in case / does not serve up any file yet |
32 | router.get('/', function (req, res) { res.status(200).sendFile(path.join(__dirname, '/app/welcome.html')); }); | 32 | router.get('/', function (req, res) { res.status(200).sendFile(path.join(__dirname, '/frontend/welcome.html')); }); |
33 | 33 | ||
34 | var rootFolder = path.resolve(__dirname, process.argv[2] || 'files'); | 34 | var rootFolder = path.resolve(__dirname, process.argv[2] || 'files'); |
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 + '/frontend')); |
39 | app.use(express.static(rootFolder)); | 39 | app.use(express.static(rootFolder)); |
40 | app.use(serveIndex(rootFolder, { icons: true })); | 40 | app.use(serveIndex(rootFolder, { icons: true })); |
41 | app.use(bodyParser.json()); | 41 | app.use(bodyParser.json()); |