1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-28 16:20:02 +02:00

Compare commits

..

673 Commits

Author SHA1 Message Date
Lars Jung
c521ecd055 Update deps. 2019-02-20 22:06:03 +01:00
Lars Jung
44e53ab213 Dev options. 2016-08-13 20:24:54 +02:00
Lars Jung
5af71185ff Release v0.29.0. 2016-08-12 14:57:36 +02:00
Lars Jung
d714ea90fb Prepare release. 2016-08-12 14:49:20 +02:00
Lars Jung
1e12faa756 Clean PHP. 2016-08-12 14:35:34 +02:00
Lars Jung
85ddff9c2d Turn onReady/Load into promised code. 2016-08-12 12:28:56 +02:00
Lars Jung
00232389ad Update changelog. 2016-08-11 19:51:55 +02:00
Lars Jung
e10fe49cc0 Add chunksize to thumbnail requests. 2016-08-11 19:50:28 +02:00
Lars Jung
6c52ae659f Update deps. 2016-08-11 17:31:42 +02:00
Lars Jung
3c54c1d66c Add space. 2016-08-11 16:43:06 +02:00
Lars Jung
940608d02a Fix selector field. 2016-08-11 00:53:43 +02:00
Lars Jung
b6b8d9f144 Clean some PHP code. 2016-08-11 00:33:06 +02:00
Lars Jung
c559edc208 Update changelog. 2016-08-10 23:59:27 +02:00
Lars Jung
4a41994556 Update changelog. 2016-08-10 23:49:41 +02:00
Lars Jung
d763d6b20a Fix safari language selection. 2016-08-10 16:35:57 +02:00
Lars Jung
dc2a74d251 Fix xhr check for safari. 2016-08-10 15:58:05 +02:00
Lars Jung
fe5ce111af Clean fallback mode topbar style. 2016-08-10 15:54:03 +02:00
Lars Jung
a930f4ce1b Clean info page styles. 2016-08-10 00:43:18 +02:00
Lars Jung
dae89ba5d8 Fix emtpy selection issues. 2016-08-10 00:20:40 +02:00
Lars Jung
78df81266c Another fix for download-all. 2016-08-09 23:26:16 +02:00
Lars Jung
b261c7e937 Docs. 2016-08-09 23:06:12 +02:00
Lars Jung
f9a7a217f8 Dereference sym links when using du. 2016-08-09 22:46:28 +02:00
Lars Jung
4d96cb47ad Fix drag-select on scrollable content. 2016-08-09 22:28:01 +02:00
Lars Jung
0f4fe15195 Fix always visible download button. 2016-08-09 19:27:43 +02:00
Lars Jung
d20d1e8b2c Lighter sidebars. 2016-08-09 03:06:50 +02:00
Lars Jung
4130f7a6fd Center icon labels. 2016-08-09 02:49:51 +02:00
Lars Jung
4ccd4bb030 Back to a cleaner GUI. 2016-08-07 18:15:22 +02:00
Lars Jung
16926f821d Update deps. 2016-08-03 11:52:45 +02:00
Lars Jung
7b5599e9d1 Merge pull request #561 from edmundlaugasson/master
added Estonian translation
2016-08-03 11:42:54 +02:00
Lars Jung
834f3b5425 Clean some tests. 2016-08-03 11:40:53 +02:00
Lars Jung
f0bee58869 Update piwik-analytics code. 2016-08-03 10:28:17 +02:00
edmundlaugasson
03e89dab5e added Estonian translation 2016-08-03 09:38:24 +03:00
Lars Jung
b7f25c45f2 Add unload funcs to audio and video previews. 2016-08-01 14:34:52 +02:00
Lars Jung
e5966bc610 Merge pull request #557 from Sirgue/patch-1
Update fr.json
2016-08-01 13:42:30 +02:00
Sirgue
78bc1e2a1e Update fr.json
Some translates for french language
2016-07-28 05:01:53 +02:00
Lars Jung
0315e29b44 Update deps. 2016-07-26 00:10:00 +02:00
Lars Jung
152dcb9b46 Revert. 2016-07-25 21:38:44 +02:00
Lars Jung
3a87b594a6 Update deps. 2016-07-25 20:15:35 +02:00
Lars Jung
631a0f7aa3 Merge pull request #556 from unix4you2/patch-2
Update es.json
2016-07-25 02:46:51 +02:00
Lars Jung
5564559b7c Merge pull request #555 from unix4you2/patch-1
Update es.json
2016-07-25 02:46:19 +02:00
Lars Jung
0e0f06d634 Add some tests. 2016-07-24 01:23:10 +02:00
Lars Jung
e52b3dd440 Width hack. 2016-07-23 22:30:26 +02:00
Lars Jung
c486962ff8 Minor. 2016-07-23 11:18:18 +02:00
Lars Jung
3fe1b2d6f8 Add tests. 2016-07-23 03:03:35 +02:00
Lars Jung
691cbce10f Replace regularCmp with cmp. 2016-07-23 02:36:16 +02:00
Lars Jung
4ccab28253 Update preview code. 2016-07-23 02:15:59 +02:00
Lars Jung
a6994150ca Add jsdom for headless testing. 2016-07-22 21:19:10 +02:00
Lars Jung
1d4b4b8a02 Update dom. 2016-07-22 20:15:14 +02:00
Lars Jung
20e080751d Update preview code. 2016-07-22 19:43:44 +02:00
Lars Jung
8a4ccd098c Clean preview code. 2016-07-22 03:59:50 +02:00
Lars Jung
9e0b1698fc Replace prism with lolight. 2016-07-21 16:31:14 +02:00
Lars Jung
18dfa1e09f Move some deps to package.json. 2016-07-21 14:26:48 +02:00
Lars Jung
83aad78ab0 Fix preview. 2016-07-21 13:48:54 +02:00
Lars Jung
9b88cdeb9b Update deps. 2016-07-21 13:44:31 +02:00
John Arroyave
11030a17af Update es.json 2016-07-11 08:02:25 -05:00
John Arroyave
aa7df50402 Update es.json 2016-07-11 07:44:35 -05:00
Lars Jung
2008d0755c Clean code. 2016-07-06 16:15:13 +02:00
Lars Jung
c7fdfc27a1 Update normalize to 4.2.0. 2016-07-02 15:11:11 +02:00
Lars Jung
717e046bb9 Update deps. 2016-07-02 13:41:01 +02:00
Lars Jung
5bbc88b8e2 Update tests. 2016-07-02 02:40:34 +02:00
Lars Jung
babb952485 Remove peer5 options. 2016-07-02 01:39:27 +02:00
Lars Jung
22b2db8daf Clean some code. 2016-07-02 00:38:52 +02:00
Lars Jung
8485905901 Clean sort code. 2016-07-01 19:26:17 +02:00
Lars Jung
73e74bb887 Update eslintrc. 2016-07-01 15:00:39 +02:00
Lars Jung
a893cb7534 Update readme. 2016-07-01 14:48:41 +02:00
Lars Jung
87e5472d42 Minor. 2016-07-01 14:44:51 +02:00
Lars Jung
05194167e1 Update prism. 2016-07-01 14:38:23 +02:00
Lars Jung
6dbffb8be1 Minor. 2016-07-01 03:55:27 +02:00
Lars Jung
24945faded Remove last jQuery refs and jQuery itself. 2016-07-01 03:27:38 +02:00
Lars Jung
3761a40e50 Clean code. 2016-06-30 02:19:49 +02:00
Lars Jung
f547d95f30 Minor. 2016-06-29 22:06:43 +02:00
Lars Jung
4a3e8c6734 Minor. 2016-06-29 19:03:54 +02:00
Lars Jung
07ccdbd734 Remove peer5. 2016-06-29 17:42:01 +02:00
Lars Jung
47b46813db Clean select code. 2016-06-29 16:59:39 +02:00
Lars Jung
82c0ae88f8 Clean select code. 2016-06-29 16:57:32 +02:00
Lars Jung
749c8b29c9 Clean select code. 2016-06-29 01:55:28 +02:00
Lars Jung
d0b6197aec Clean custom code. 2016-06-28 21:34:55 +02:00
Lars Jung
3b8edf9ad8 Clean tree code. 2016-06-28 19:44:52 +02:00
Lars Jung
9c4f3111ba Remove jq from tree. 2016-06-28 03:01:07 +02:00
Lars Jung
901d8c407d Bundle utils. 2016-06-26 17:57:25 +02:00
Lars Jung
6b3ba18da1 Update dom. 2016-06-26 17:07:43 +02:00
Lars Jung
cfbae4c5d5 Update. 2016-06-26 14:08:18 +02:00
Lars Jung
7320592dc2 Start to replace jQuery with dom. 2016-06-26 01:03:24 +02:00
Lars Jung
9234e3f287 Clean code. 2016-06-25 00:39:57 +02:00
Lars Jung
95c473a7c7 Clean code. 2016-06-24 23:06:00 +02:00
Lars Jung
3e14d7bed4 Clean code. 2016-06-24 21:26:59 +02:00
Lars Jung
aebfdeb1cd Remove all lodash deps. 2016-06-24 20:31:40 +02:00
Lars Jung
131d153cf5 More changes from jq.data to pure props. 2016-06-24 19:37:57 +02:00
Lars Jung
a3c9bc9db0 Initial switch from jq.data to pure props. 2016-06-24 18:59:16 +02:00
Lars Jung
06b4d81a61 Clean code. 2016-06-24 18:18:44 +02:00
Lars Jung
d8d7b997b5 Remove some more lodash refs. 2016-06-24 16:59:31 +02:00
Lars Jung
26c4d569aa Merge pull request #544 from PeterDaveHelloKitchen/image-optimize
optimize png images losslessly using zopflipng
2016-06-24 13:19:04 +02:00
Lars Jung
67d9e9794b Merge pull request #542 from kuoruan/translate
Update Chinese Translate
2016-06-24 13:15:23 +02:00
Lars Jung
0b8d7e5343 Minor. 2016-06-24 01:11:26 +02:00
Lars Jung
c3cd171785 Refactor. 2016-06-23 13:15:12 +02:00
Lars Jung
171f1c12eb Overlay sidebar. 2016-06-23 00:27:24 +02:00
Lars Jung
50644c84dc Overlay sidebar on small screens. 2016-06-23 00:19:23 +02:00
Lars Jung
92e8e34a66 Improve 64-bit hint. 2016-06-22 23:14:25 +02:00
Lars Jung
804df4c0fb Refactor PHP. 2016-06-22 22:07:57 +02:00
Lars Jung
41bb7d76b5 Refactor PHP. 2016-06-22 22:04:35 +02:00
Lars Jung
35df02984b Clean code. 2016-06-22 21:15:50 +02:00
Lars Jung
e0fc7043b5 Add PHP arch check. 2016-06-22 18:15:55 +02:00
Lars Jung
628836a201 PHP filesize. 2016-06-22 16:54:32 +02:00
Lars Jung
00f9ee09d3 Minor. 2016-06-22 11:36:36 +02:00
Lars Jung
029d4ed5af Minor. 2016-06-22 11:36:16 +02:00
Lars Jung
cd7c3c3dd4 Update editorconfig. 2016-06-21 03:25:20 +02:00
Lars Jung
d5c9668013 Update eslint. 2016-06-21 03:20:04 +02:00
Lars Jung
2fb7f9129e Add source check. 2016-06-21 03:16:35 +02:00
Lars Jung
f6150c58f4 Clean code. 2016-06-20 01:37:18 +02:00
Lars Jung
3246525d78 Remove some lodash deps. 2016-06-20 00:13:52 +02:00
Lars Jung
fe9cdbc46b Clean code. 2016-06-19 23:05:31 +02:00
Lars Jung
324fceb5c3 Move server to root dir. 2016-06-19 19:21:32 +02:00
Lars Jung
8656bdd74e Update styles. 2016-06-19 16:50:23 +02:00
Lars Jung
8ef9575e51 Replace jQuery.qrcode with kjua 0.1.1. 2016-06-19 14:47:39 +02:00
Lars Jung
1fc72d8473 Update ghu.js. 2016-06-19 14:08:26 +02:00
Lars Jung
2153056266 Rename global.js to pre.js. 2016-06-19 13:57:10 +02:00
Lars Jung
2240bd3ca1 Update deps. 2016-06-18 12:22:29 +02:00
Peter Dave Hello
127eaf9aac optimize png images losslessly using zopflipng 2016-06-11 10:21:37 +08:00
Lars Jung
7d5945d45b Minor changes. 2016-06-04 16:26:08 +02:00
Lars Jung
1d2c45dc68 Refactor view files. Add option to disable sidebar. 2016-06-04 16:09:35 +02:00
Lars Jung
2ee4a18e1c Clean build file. 2016-06-04 14:36:08 +02:00
Lars Jung
f0a9937dc6 Switch file names from jade to pug. 2016-06-04 02:43:48 +02:00
Lars Jung
3a2e61b163 Clean up tests. 2016-06-04 01:06:25 +02:00
Lars Jung
c4fa90a747 Add scar tests. 2016-06-03 23:08:30 +02:00
Lars Jung
1cba9290b6 Refactor win.js into globals.js. 2016-06-03 22:40:05 +02:00
Lars Jung
58cbad2bfd Disable filter. 2016-06-03 17:56:50 +02:00
Lars Jung
da9d027fed Remove custom modernizr. 2016-06-03 17:46:01 +02:00
Lars Jung
70d6528190 Test some module designs. 2016-06-03 17:38:00 +02:00
Lars Jung
f7187fb14b Stricter browser checks. Drop IE support. 2016-06-03 17:36:42 +02:00
Lars Jung
7ec2bdf16a Begin to move all src javascript to es6. Add search/filter ignore case option. 2016-06-02 23:16:23 +02:00
Hsing-Wang Liao
c7433b0d14 Update Traditional Chinese translation
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
2016-06-01 14:20:47 +08:00
Hsing-Wang Liao
0179a5044b Update Simplified Chinese translation
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
2016-06-01 14:08:08 +08:00
Lars Jung
f37e8e7b89 Update sinon to 1.17.3. 2016-05-31 02:00:19 +02:00
Lars Jung
ba670be7d8 Update ghu. Switch from jade to pug. 2016-05-31 01:21:44 +02:00
Lars Jung
93487de085 Remove sharpen arg from pdf convert. 2016-05-29 20:47:17 +02:00
Lars Jung
a2fb3d952d Replace getenv with SERVER lookups. 2016-05-29 19:05:50 +02:00
Lars Jung
fada3c1e36 Release custom head tags. 2016-05-29 18:21:32 +02:00
Lars Jung
aa87ec15b0 Add fallback mode. 2016-05-29 17:35:15 +02:00
Lars Jung
a0db0e0ac3 Update htaccess. 2016-05-29 14:52:39 +02:00
Lars Jung
a790c34a24 Readd some apache config. 2016-05-28 22:23:27 +02:00
Lars Jung
38daa4aa1f Update readme. 2016-05-28 21:34:23 +02:00
Lars Jung
c92822ba7d Update readme. 2016-05-28 19:58:17 +02:00
Lars Jung
18f2c72fd1 Change svg from text to image format. 2016-05-28 19:57:11 +02:00
Lars Jung
d03dc990fa Update readme and changelog. 2016-05-28 16:21:09 +02:00
Lars Jung
882abd1972 Merge pull request #510 from SushiDude/htaccess
Use mod_authz_core when available. Otherwise, fallback to mod_authz_host or mod_access_compat.
2016-05-28 00:04:37 +02:00
Lars Jung
2dd594ba13 Clean code. 2016-05-27 23:49:27 +02:00
Lars Jung
8d5473903e Merge pull request #534 from thezbyg/master
Fix incorrect tree item display.
2016-05-27 23:47:22 +02:00
Lars Jung
69c1ffd92f Fix and clean code from broken pull request. 2016-05-27 23:06:50 +02:00
Lars Jung
808e37d034 Merge pull request #526 from cygmris/master
Add commands support for Windows
2016-05-27 23:00:26 +02:00
Lars Jung
60ef5ff983 Merge pull request #492 from Joery/master
h5ai: fix typo & nl translation
2016-05-27 22:47:54 +02:00
Lars Jung
171539643e Merge pull request #537 from Monter/master
Update pl.json
2016-05-27 22:43:15 +02:00
Lars Jung
793bfce202 Minor change. 2016-05-27 22:42:11 +02:00
Lars Jung
10d6d2c3c1 Remove babel for now. 2016-05-27 20:35:43 +02:00
Lars Jung
51a161eede Minor tweaks. 2016-05-27 18:23:29 +02:00
Lars Jung
57b3ee6c2f Update deps: jquery, lodash, qrcode, modulejs. Minor fixes. 2016-05-27 17:56:32 +02:00
Lars Jung
641d9b3cfa Update deps. Fix lint issues. 2016-05-27 16:31:27 +02:00
Mark eM
5c2d84aaa9 Update pl.json 2016-05-22 20:25:50 +02:00
Albertas Vyšniauskas
8157ada8fc Fix incorrect tree item display.
Issues #533 and #499.
2016-05-17 17:04:24 +03:00
Lars Jung
8e143a4607 Update deps. 2016-05-16 16:10:37 +02:00
Lars Jung
e021862acf Minor tweaks. 2016-05-05 23:51:47 +02:00
Chr1sh3ng
ed9f04a372 Add commands support for Windows 2016-04-15 19:17:43 +08:00
Wyatt J. Brown
ca86993091 Use mod_authz_core when available. Otherwise, fallback to mod_authz_host or mod_access_compat.
https://github.com/lrsjng/h5ai/pull/489
https://github.com/lrsjng/h5ai/issues/504
2016-02-27 03:12:37 -05:00
Joery
85bd0abd8d Merge pull request #1 from lrsjng/master
h5ai: downstream 20160121
2016-01-21 10:09:53 +01:00
Lars Jung
ed1ab4053c Update apk icon. Add rust type and icon. 2016-01-19 01:18:08 +01:00
Lars Jung
6aed4455d3 Update deps. 2016-01-14 00:44:10 +01:00
Lars Jung
5f265672ae Remove blank lines from PHP sources. 2016-01-14 00:36:25 +01:00
Joery
1653306440 h5ai: update dutch translation 2015-12-25 22:03:03 +01:00
Joery
d0fe566f8f h5ai: fix typo 2015-12-25 22:02:30 +01:00
Lars Jung
11bab8d0a1 Fix mobile view. 2015-12-19 19:58:25 +01:00
Lars Jung
c612fbcfb7 Push version. 2015-12-19 18:12:31 +01:00
Lars Jung
11c86c7031 Update deps. 2015-12-19 17:52:36 +01:00
Lars Jung
e2ffb09ed1 Merge pull request #478 from m0vie/php-tar-dir-mtime
php-tar: store mtime of directories
2015-12-19 17:09:11 +01:00
Lars Jung
77f1a073a7 Merge pull request #457 from Kleofass/patch-1
Update lv.json
2015-12-19 17:07:51 +01:00
Lars Jung
168ead7ed5 Update package. 2015-12-19 17:07:17 +01:00
Lars Jung
0e5b463acf Update deps. Fix version string. 2015-12-19 17:01:45 +01:00
Lars Jung
2e8ae301c5 Remove stamp. 2015-12-13 22:23:40 +01:00
Lars Jung
ab622d5cd2 Update deps. 2015-12-11 23:13:00 +01:00
Lars Jung
a6e6cf96d6 Update readme. 2015-11-19 00:07:25 +01:00
Lars Jung
58b4d20185 Update readme. 2015-11-18 23:39:28 +01:00
Lars Jung
39ea94daa8 Fix a lot eslint errors. 2015-11-18 23:16:58 +01:00
Lars Jung
0c6143704a Switch to ghu and eslint. 2015-11-18 17:27:16 +01:00
Lars Jung
5d0770ca36 Update. 2015-10-24 20:04:44 +02:00
Lars Jung
1ae45f6cbb Breaking changes. 2015-10-24 19:20:31 +02:00
m0vie
eb69d73190 php-tar: store mtime of directories 2015-10-14 21:00:04 +02:00
Lars Jung
2b2656b7e1 Minor. 2015-07-01 23:56:20 +02:00
Lars Jung
6c7e3e8c5d Update test desc. 2015-06-14 16:04:11 +02:00
Lars Jung
063049ec8e Fix tests. 2015-06-14 15:32:01 +02:00
Lars Jung
787eae7a80 Update tests. 2015-06-14 15:24:05 +02:00
Kleofass
5b1b8e0b2d Update lv.json 2015-06-05 10:21:31 +03:00
Lars Jung
18a62ca831 Revert. 2015-05-31 21:21:32 +02:00
Lars Jung
de0b2eedc9 Test. 2015-05-31 21:03:33 +02:00
Lars Jung
d7b389e407 Refactor IE check. 2015-05-30 20:26:38 +02:00
Lars Jung
14825ebe29 Update lodash to 3.9.3, use modern build. 2015-05-29 16:12:22 +02:00
Lars Jung
34aeac9787 Replace modernizr with custom setup. 2015-05-29 15:27:44 +02:00
Lars Jung
fc3f84da6e Clean code. 2015-05-29 12:08:43 +02:00
Lars Jung
6ed6819cef Maintenance. 2015-05-23 02:45:15 +02:00
Lars Jung
370bb3b068 Update readme. 2015-05-21 02:41:27 +02:00
Lars Jung
570431e39c Fix fseek filesize. 2015-05-21 00:33:54 +02:00
Lars Jung
efc4623a0b Minor changes. 2015-05-20 22:44:08 +02:00
Lars Jung
65d8aab429 Clean code. 2015-05-20 22:13:04 +02:00
Lars Jung
6c9d480736 Start filesize refactoring. 2015-05-20 18:41:48 +02:00
Lars Jung
9fde25fc8e Tweaks. 2015-05-20 03:25:15 +02:00
Lars Jung
e6a59ae6d0 Update readme. 2015-05-20 02:54:55 +02:00
Lars Jung
5b68fe731a Reorganize file structure. 2015-05-20 02:54:01 +02:00
Lars Jung
c8eff2d313 Reorganize file structure. 2015-05-20 01:53:56 +02:00
Lars Jung
74745a8603 Tweaks. 2015-05-20 00:45:43 +02:00
Lars Jung
0aadd1add9 Tweaks. 2015-05-20 00:12:29 +02:00
Lars Jung
b3f61f81e2 Add icons. 2015-05-18 00:17:17 +02:00
Lars Jung
90befd2b8e Add txt-pdf icon. 2015-05-17 20:22:07 +02:00
Lars Jung
bf5483950c Update types. 2015-05-17 18:52:40 +02:00
Lars Jung
bd7e005c91 Update crumb styles. 2015-05-17 18:08:57 +02:00
Lars Jung
e08cbb4c96 Merge pull request #442 from jerryjacobs/type-add-golang
Add golang syntax highlight.
2015-05-17 18:07:04 +02:00
Lars Jung
c93df78f1d Merge pull request #446 from bskim45/patch-2
Updated ko.json
2015-05-17 18:06:34 +02:00
Lars Jung
bfb1be8aa5 Fix fallback styles. Update fallback and favicons. 2015-05-17 17:15:06 +02:00
Lars Jung
86466f072b Fix preview label issue. 2015-05-17 16:31:15 +02:00
Lars Jung
b33599f4f2 Fix preview label issue. 2015-05-17 16:27:53 +02:00
Lars Jung
d0f29ec3cf New default theme. New theme comity. 2015-05-17 16:20:06 +02:00
Bumsoo Kim
be7626b698 Updated ko.json 2015-05-17 18:08:28 +09:00
Lars Jung
01b1a8e029 Update text preview. 2015-05-17 02:28:39 +02:00
Lars Jung
09fa3acc4d Update text preview. 2015-05-17 00:16:31 +02:00
Lars Jung
04d9296733 Update tests. 2015-05-16 22:15:54 +02:00
Lars Jung
0b57b1cbd2 Clean code. 2015-05-16 21:48:27 +02:00
Lars Jung
0a843a0b1f Refactor browser check. 2015-05-16 21:36:05 +02:00
Lars Jung
8d3611e30c Update changelog. 2015-05-16 15:34:11 +02:00
Lars Jung
76c226c57b Add ignorecase option to tree. 2015-05-16 14:28:54 +02:00
Lars Jung
673afead73 Update styles. 2015-05-16 05:17:08 +02:00
Lars Jung
8e5b874490 Update styles. 2015-05-16 05:05:22 +02:00
Lars Jung
d9ea66ef85 Clean font css. Add font options. 2015-05-16 04:39:19 +02:00
Lars Jung
fbd9db897e Add extensions dir. 2015-05-16 03:11:09 +02:00
Lars Jung
1995acab95 Add improved PHP JSON parsing. Add option to add resources. 2015-05-16 03:03:17 +02:00
Lars Jung
fe9c7587d8 Add maxIconSize option. 2015-05-15 01:17:00 +02:00
Lars Jung
9eb29b5707 Fix theme. 2015-05-14 22:11:57 +02:00
Lars Jung
99462d0ae0 Add gm support for PDF thumbs. 2015-05-14 19:00:10 +02:00
Lars Jung
89d56b3ae4 Update mode toggle. 2015-05-14 18:04:39 +02:00
Lars Jung
a61dea8c40 Update tests. 2015-05-14 17:37:35 +02:00
Lars Jung
cc4bb962a6 Add non-public cache. 2015-05-14 17:33:54 +02:00
Lars Jung
0a3d085c5a Update readme and changelog. 2015-05-14 15:32:51 +02:00
Lars Jung
17b5d4dfaa Remove version from settings. 2015-05-14 14:50:51 +02:00
Lars Jung
95f087cfd6 Refactor info page. 2015-05-14 14:22:40 +02:00
Lars Jung
9090c28f04 Clean jade markup. 2015-05-14 13:41:13 +02:00
Lars Jung
fe5723f75d Minor changes. 2015-05-14 01:27:32 +02:00
Lars Jung
9637c89b1b Clean code. 2015-05-14 00:33:27 +02:00
Lars Jung
4db158e8d9 Replace appHref with publicHref. 2015-05-14 00:13:22 +02:00
Lars Jung
05547c2685 Update readme. 2015-05-13 23:42:35 +02:00
Lars Jung
4f9a298273 Fix some edge case. 2015-05-13 22:30:38 +02:00
Lars Jung
2a7b1b1f0d Refactor code. 2015-05-13 21:44:56 +02:00
Lars Jung
21014ff788 Clean markup. 2015-05-13 19:04:20 +02:00
Lars Jung
9611aed707 Make Bootstrap static again. 2015-05-13 17:33:43 +02:00
Lars Jung
ae677a2194 Refactor pages. 2015-05-13 16:13:21 +02:00
Lars Jung
f19d9b9419 Fix fatal request error. 2015-05-13 14:11:22 +02:00
Lars Jung
fe6830cd83 Update tests. 2015-05-13 14:09:30 +02:00
Lars Jung
4932dda11c Move passhass to options. 2015-05-13 14:07:21 +02:00
Lars Jung
37fbca2ead Minor changes. 2015-05-13 02:34:11 +02:00
Lars Jung
093296dbac Update tests. 2015-05-13 02:19:39 +02:00
Lars Jung
4f83c95d20 Use own location as API href. 2015-05-13 01:16:21 +02:00
Lars Jung
0f72db1961 Fix image href. 2015-05-13 00:30:35 +02:00
Lars Jung
7063b26a5f Fix some info page styles. 2015-05-13 00:28:32 +02:00
Lars Jung
4889290d3e Minor tweaks. 2015-05-12 22:25:59 +02:00
Lars Jung
b1f88f28f4 Merge index and info routing. 2015-05-12 18:21:30 +02:00
Lars Jung
ee241e7e3f Restructure file base. 2015-05-12 16:08:20 +02:00
Lars Jung
057a5f05a5 Rename app to context. 2015-05-12 14:03:49 +02:00
Lars Jung
06b9232552 Refactor PHP code. 2015-05-12 13:36:29 +02:00
Lars Jung
6258c40a24 Clean PHP code. 2015-05-12 03:26:44 +02:00
Lars Jung
9f53ddd3f3 Clean PHP code. 2015-05-12 02:04:58 +02:00
Lars Jung
e199be6363 Clean PHP code. 2015-05-12 01:18:14 +02:00
Lars Jung
788f4f047c Clean PHP code. 2015-05-12 01:00:45 +02:00
Lars Jung
34f86997cb Clean code. 2015-05-11 23:55:31 +02:00
Lars Jung
291f4e28d8 Refactor PHP. 2015-05-11 23:54:46 +02:00
Lars Jung
8f921c8a1f Refactor PHP. 2015-05-11 23:34:02 +02:00
Lars Jung
8c810a1818 Clean code. 2015-05-11 17:56:01 +02:00
Lars Jung
d07850b6ef Refactor PHP. Switch to explicit string literals where possible. 2015-05-11 13:00:10 +02:00
Lars Jung
cb9b8c6244 Refactor PHP. Switch to explicit string literals where possible. 2015-05-11 12:47:38 +02:00
Lars Jung
1e11b804ab Refactor PHP. Switch to explicit string literals where possible. 2015-05-11 12:40:33 +02:00
Lars Jung
0719eeeb90 Refactor PHP. Switch to explicit string literals where possible. 2015-05-11 12:32:34 +02:00
Lars Jung
f363e78601 Refactor PHP. Switch to explicit string literals where possible. 2015-05-11 12:27:24 +02:00
Lars Jung
b340fe3569 Refactor PHP. Switch to explicit string literals where possible. 2015-05-11 12:20:09 +02:00
Lars Jung
429a2b7749 Refactor PHP. Switch to explicit string literals where possible. 2015-05-11 12:14:25 +02:00
Lars Jung
c18b09c658 Refactor PHP. Remove almost all defines. 2015-05-11 11:55:48 +02:00
Lars Jung
7bcb52214b Minor changes. 2015-05-10 16:10:03 +02:00
Lars Jung
34e6c2c381 Minor changes. 2015-05-10 16:09:11 +02:00
Lars Jung
b6b84a541b Refactor code. 2015-05-10 15:09:10 +02:00
Lars Jung
76186e513f Tweaks. 2015-05-10 14:59:08 +02:00
Lars Jung
5930681095 Refactor code. 2015-05-10 13:24:41 +02:00
Lars Jung
1d7457a4a2 Refactor code. 2015-05-10 13:05:39 +02:00
Lars Jung
7503d79c06 Refactor view and viewmode. 2015-05-10 10:58:18 +02:00
Lars Jung
24319e1c49 Refactor PHP. 2015-05-10 02:37:12 +02:00
Lars Jung
48b788eaef Refactor PHP. 2015-05-10 01:39:18 +02:00
Lars Jung
6b071fc1e7 Change test description to make it work standalone. 2015-05-09 20:44:02 +02:00
Lars Jung
942f4696e2 Add tests. 2015-05-09 20:40:30 +02:00
Lars Jung
022f715b98 Add tests. 2015-05-09 20:34:39 +02:00
Lars Jung
7311cc8e4b Add tests for escapePattern and parsePattern. 2015-05-09 19:30:17 +02:00
Jerry Jacobs
7f6755b5de * Add golang syntax highlight 2015-05-09 18:27:29 +02:00
Lars Jung
a482529fdc Refactor code. 2015-05-09 17:33:03 +02:00
Lars Jung
5798529fe2 Refactor code. 2015-05-09 17:27:15 +02:00
Lars Jung
a362356a72 Improve view, filter and search. 2015-05-09 16:29:26 +02:00
Lars Jung
4896d9a101 Update l10n and sort l10n entries. 2015-05-09 02:15:36 +02:00
Lars Jung
d244ab9fca Update l10n and sot l10n entries. 2015-05-09 02:10:55 +02:00
Lars Jung
570599c19d Add debounce option to search. 2015-05-09 01:18:56 +02:00
Lars Jung
a9f6f157fa Fix tests. 2015-05-08 22:13:06 +02:00
Lars Jung
c35abad20a Add search frontend extension, plus refactorings to make it work. 2015-05-08 22:09:12 +02:00
Lars Jung
7f687e0a84 Refactor PHP. 2015-05-07 01:27:02 +02:00
Lars Jung
ea24ae3b5f Refactor PHP. 2015-05-06 23:51:12 +02:00
Lars Jung
55597ae1ba Refactor PHP. 2015-05-06 20:57:18 +02:00
Lars Jung
6ee0ed3444 Refactor code. 2015-05-06 19:12:28 +02:00
Lars Jung
d5a1a829e3 Refactor API. 2015-05-06 18:58:07 +02:00
Lars Jung
5c72378b39 Refactor API, add search. 2015-05-06 17:18:08 +02:00
Lars Jung
e3603cfec1 Change version info. 2015-05-06 14:17:44 +02:00
Lars Jung
90d337a51f Change hash algo to sha512. 2015-05-06 14:12:17 +02:00
Lars Jung
1975715dbd Refactor bootstrap. 2015-05-06 13:11:37 +02:00
Lars Jung
85be66886a Add fast PHP version check and exit. 2015-05-06 12:28:50 +02:00
Lars Jung
d4e349f260 Refactor PHP, 5.3 => 5.4. 2015-05-05 23:58:11 +02:00
Lars Jung
059e166402 Refactor PHP, 5.3 => 5.4. 2015-05-05 23:55:35 +02:00
Lars Jung
1d7c2f3b80 Clean code. 2015-05-05 23:20:37 +02:00
Lars Jung
11c3750690 Refactor custom API. 2015-05-05 21:53:23 +02:00
Lars Jung
808b1bf657 Update thumbnail requests. 2015-05-05 21:01:30 +02:00
Lars Jung
7c4f9d574c Refactor API. 2015-05-05 01:58:50 +02:00
Lars Jung
e31028f5a9 Refactor API. 2015-05-05 00:01:25 +02:00
Lars Jung
0f1ca4e85b Refactor item. 2015-05-03 23:52:49 +02:00
Lars Jung
003b3f3edb Refactor. 2015-05-03 22:11:31 +02:00
Lars Jung
69cc1bd281 Refactor getThumbHref return object. 2015-05-03 21:05:04 +02:00
Lars Jung
31fe4d1591 Clean l10n code. 2015-05-03 20:44:05 +02:00
Lars Jung
675efd6cd3 Refactor url to href, to be more consistent. 2015-05-03 19:36:17 +02:00
Lars Jung
0f0d97dab5 Remove unused definitions. 2015-05-03 17:33:42 +02:00
Lars Jung
4b19239f6f Remove CURRENT_* definitions. 2015-05-03 16:48:53 +02:00
Lars Jung
a74e849faf Reduce CURRENT_PATH deps. 2015-05-03 04:05:42 +02:00
Lars Jung
d0f7f586e8 Clean code. 2015-05-03 03:10:33 +02:00
Lars Jung
3b9e87e11b Refactor code. 2015-05-03 01:52:26 +02:00
Lars Jung
46b335eb9f Refactor code. 2015-05-02 23:38:47 +02:00
Lars Jung
9bdf86fc24 Refactor PHP, restrict setup info. 2015-05-02 22:29:26 +02:00
Lars Jung
167e30dee1 Refactor code. 2015-05-02 20:16:48 +02:00
Lars Jung
16186811a4 Clean code. 2015-05-02 19:45:01 +02:00
Lars Jung
d2031d57d2 Refactor PHP. 2015-05-02 18:01:03 +02:00
Lars Jung
6e54ba2f73 Refactor PHP setup. 2015-05-02 16:52:50 +02:00
Lars Jung
77d6da3a24 Refactor PHP code. 2015-05-02 03:59:22 +02:00
Lars Jung
65caa0fe9d Clean PHP code. 2015-05-02 03:27:24 +02:00
Lars Jung
d6040b028e Clean up and fix. 2015-05-02 02:07:22 +02:00
Lars Jung
509074c263 Add safety check on PHP options lookup. 2015-05-02 01:44:50 +02:00
Lars Jung
6ad53ec2aa Refactor PHP request handling and return codes. 2015-05-01 20:29:36 +02:00
Lars Jung
e275ecac07 Set minimum PHP version to 5.4.0 2015-05-01 18:26:46 +02:00
Lars Jung
2d0cc10e44 Change quotes. 2015-05-01 16:48:20 +02:00
Lars Jung
af6c715a5b Switch API to react to POST only. 2015-05-01 16:16:31 +02:00
Lars Jung
3360e4d167 Minor changes. 2015-05-01 12:33:37 +02:00
Lars Jung
2331f21f90 Refactor code. 2015-04-30 23:30:28 +02:00
Lars Jung
58bf1a3091 Refactor view. 2015-04-30 23:01:54 +02:00
Lars Jung
3cf135b670 Clean code. 2015-04-30 13:01:17 +02:00
Lars Jung
5ce0541937 Add view/viewmode tests. 2015-04-30 00:32:43 +02:00
Lars Jung
19aa32feb4 Add view/viewmode tests. 2015-04-30 00:18:14 +02:00
Lars Jung
aedf75b9f8 Add view/viewmode tests. 2015-04-30 00:15:09 +02:00
Lars Jung
8b7e0b57c5 Add view/item tests. 2015-04-29 23:47:39 +02:00
Lars Jung
3dfd912266 Clean code. 2015-04-29 23:17:54 +02:00
Lars Jung
5bd767d744 Clean code. 2015-04-29 23:15:37 +02:00
Lars Jung
b39ba9cd00 Clean code. 2015-04-29 23:15:16 +02:00
Lars Jung
07ffb9d995 Clean code. 2015-04-29 23:13:51 +02:00
Lars Jung
2479aa597b Clean code. 2015-04-29 23:11:45 +02:00
Lars Jung
8c34337136 Refactor view/content. 2015-04-29 23:08:38 +02:00
Lars Jung
0faf399abd Fix content scroll. 2015-04-29 20:02:57 +02:00
Lars Jung
7704a00d7b Rename mainrow. 2015-04-29 19:47:37 +02:00
Lars Jung
96b6ff7fff Update tests. 2015-04-29 18:55:36 +02:00
Lars Jung
3dedb6b0f6 Minor changes. 2015-04-29 17:56:44 +02:00
Lars Jung
13457f8a6a Minor changes. 2015-04-29 17:14:04 +02:00
Lars Jung
bc966c46c6 Relax test. 2015-04-29 16:37:06 +02:00
Lars Jung
a5d04198dc Update viewmode. 2015-04-29 16:23:24 +02:00
Lars Jung
c3803b2e84 Add viewmode tests. 2015-04-29 14:54:59 +02:00
Lars Jung
aa8b9789f7 Clean tests. 2015-04-29 14:28:27 +02:00
Lars Jung
70c8364349 Add integration test. 2015-04-29 14:23:15 +02:00
Lars Jung
ea306c7d0c Minor visual tweak. 2015-04-29 11:56:41 +02:00
Lars Jung
33bc45d179 Add simple toggle. 2015-04-29 02:16:29 +02:00
Lars Jung
f7d0f7d5eb Refactor type tests. 2015-04-29 01:48:11 +02:00
Lars Jung
f181c52d13 Minor changes. 2015-04-29 01:25:32 +02:00
Lars Jung
f7e3f4da79 Minor changes. 2015-04-29 01:18:11 +02:00
Lars Jung
2365c23af7 Refactor notifications. 2015-04-29 01:13:30 +02:00
Lars Jung
73496c6b7c Refactor notifications. 2015-04-29 00:57:58 +02:00
Lars Jung
6500b624f5 Refactor location module. 2015-04-29 00:44:10 +02:00
Lars Jung
2525ad8393 Adds onpopstate tests. 2015-04-29 00:39:22 +02:00
Lars Jung
344c61bd23 Refactor forceEncoding. 2015-04-28 21:46:49 +02:00
Lars Jung
248e7efdb0 Refactor test runner. 2015-04-28 13:03:52 +02:00
Lars Jung
530e9c3859 Clean code. 2015-04-28 01:24:26 +02:00
Lars Jung
594653a753 Update. 2015-04-28 01:04:51 +02:00
Lars Jung
cb5c197994 Clean test code. 2015-04-28 00:25:48 +02:00
Lars Jung
c8bffa006b Refactor test runner 2015-04-27 23:55:25 +02:00
Lars Jung
df76ca0807 Update test styles. 2015-04-27 23:04:34 +02:00
Lars Jung
1e00e2b733 Remove ready event. 2015-04-27 21:48:56 +02:00
Lars Jung
2b834f0233 Refactor test runner. 2015-04-27 12:51:25 +02:00
Lars Jung
af34531ee0 Update test styles. 2015-04-27 12:05:22 +02:00
Lars Jung
b5049ea855 Update test styles. 2015-04-27 02:13:26 +02:00
Lars Jung
785f4632c7 Update test runner code. 2015-04-27 02:06:46 +02:00
Lars Jung
fcaddbbd3b Clean code. 2015-04-27 01:53:34 +02:00
Lars Jung
ddf23d1ea5 Clean and refactor styles. 2015-04-27 00:49:50 +02:00
Lars Jung
dabc9e3c93 Clean and refactor styles. 2015-04-27 00:19:46 +02:00
Lars Jung
f89010bd98 Refactor styles. 2015-04-26 23:41:07 +02:00
Lars Jung
cf84bd74f1 Fix some jshint issues. 2015-04-26 21:41:05 +02:00
Lars Jung
b95aa583a9 Refactor test code. 2015-04-26 21:37:41 +02:00
Lars Jung
21c976bb3d Update test runner. 2015-04-26 20:02:23 +02:00
Lars Jung
63fe57731e Update font styles. 2015-04-26 19:00:08 +02:00
Lars Jung
668f316465 Refactor tests. 2015-04-26 18:10:31 +02:00
Lars Jung
55fa4a1bcd Remove stylesheet types. 2015-04-26 16:37:12 +02:00
Lars Jung
bdeac2533f Clean styles. 2015-04-26 16:27:56 +02:00
Lars Jung
2ed333ab82 Clean contextmenu. 2015-04-26 16:16:47 +02:00
Lars Jung
8d11090f7d Update fallback styles. 2015-04-26 14:15:19 +02:00
Lars Jung
336e9ac0bd Clean styles. 2015-04-26 13:55:27 +02:00
Lars Jung
0a4fd4ee2c Clean styles. 2015-04-26 02:59:49 +02:00
Lars Jung
b90b164552 Clean styles. 2015-04-26 01:12:58 +02:00
Lars Jung
b7a77797f6 Refactor styles. 2015-04-26 00:33:36 +02:00
Lars Jung
ebcf431363 Refactor styles. 2015-04-25 21:44:34 +02:00
Lars Jung
ba315be9e5 Refactor topbar and crumb. 2015-04-25 21:13:25 +02:00
Lars Jung
d5a0dce27a Clean code. 2015-04-25 17:29:15 +02:00
Lars Jung
1a47a2aa3b Refactor code. 2015-04-25 17:10:47 +02:00
Lars Jung
d5221c0d17 Refactor view. 2015-04-25 13:24:34 +02:00
Lars Jung
0be36ea9e8 Rename smartBrowsing to fastBrowsing. 2015-04-24 22:22:15 +02:00
Lars Jung
c03fd20bae Add tests. 2015-04-24 20:37:19 +02:00
Lars Jung
c632cc6dea Add tests. 2015-04-24 19:59:51 +02:00
Lars Jung
908c49c584 Clean code. Add tests. 2015-04-24 18:03:10 +02:00
Lars Jung
d591dbc0cd Clean code. 2015-04-24 15:39:59 +02:00
Lars Jung
945703952b Clean code. 2015-04-24 15:34:06 +02:00
Lars Jung
9102b6d1c3 Clean code. 2015-04-24 15:17:54 +02:00
Lars Jung
4daab5d77b Remove force arg from content update method. 2015-04-24 03:42:25 +02:00
Lars Jung
5e8baf027e Clean code. 2015-04-24 02:32:03 +02:00
Lars Jung
34525afe56 Clean code. 2015-04-24 00:51:26 +02:00
Lars Jung
c73bc83f7d Clean code. 2015-04-24 00:01:56 +02:00
Lars Jung
ce11fcffbc Update mocha code. 2015-04-23 23:52:59 +02:00
Lars Jung
239157df30 Update test styles. 2015-04-23 13:41:20 +02:00
Lars Jung
e7d97d4b66 Update test styles. 2015-04-23 02:33:40 +02:00
Lars Jung
b2c4802310 Clean code. 2015-04-23 00:31:29 +02:00
Lars Jung
60b366a7f4 Clean code. 2015-04-23 00:08:43 +02:00
Lars Jung
c732fbb363 Clean code. 2015-04-22 23:50:16 +02:00
Lars Jung
41b199c578 Clean strings. 2015-04-22 23:45:23 +02:00
Lars Jung
88854ad451 Add tests. 2015-04-22 23:21:48 +02:00
Lars Jung
3882f1483b Add tests. 2015-04-22 21:30:29 +02:00
Lars Jung
882bf8ae11 Clean code. 2015-04-22 19:34:35 +02:00
Lars Jung
c396800dfa Publish tests. 2015-04-22 17:12:45 +02:00
Lars Jung
5a8ecd593d Sort module deps. 2015-04-22 17:10:49 +02:00
Lars Jung
84693e6404 Sort module deps. 2015-04-22 05:03:28 +02:00
Lars Jung
476df8219f Update build file. 2015-04-22 01:02:33 +02:00
Lars Jung
448c889e56 Clean code. 2015-04-19 23:23:34 +02:00
Lars Jung
52ca5275b1 Update JSCS config. 2015-04-19 20:35:54 +02:00
Lars Jung
0fd6e2c878 Update build file. 2015-04-18 13:53:05 +02:00
Lars Jung
85599f8a33 Refactor. 2015-04-18 01:11:48 +02:00
Lars Jung
5f2a7985d8 Refactor js init sequence. 2015-04-18 00:38:28 +02:00
Lars Jung
b1b5e37ab6 Remove #settings div. 2015-04-17 23:58:56 +02:00
Lars Jung
2f26146228 Remove #settings div. 2015-04-17 23:51:48 +02:00
Lars Jung
6bfbebc51e Clean code. 2015-04-17 20:29:17 +02:00
Lars Jung
762fd54788 Clean code. 2015-04-17 17:50:27 +02:00
Lars Jung
57ab18355d Clean code. 2015-04-17 17:46:44 +02:00
Lars Jung
8d9a2f505f Clean code. 2015-04-17 15:34:27 +02:00
Lars Jung
c20da80bda Clean store module. Publish test build commands. 2015-04-17 03:16:04 +02:00
Lars Jung
e99bd06370 Clean code. 2015-04-17 03:02:48 +02:00
Lars Jung
6f5446f218 Update build file. 2015-04-14 04:21:05 +02:00
Lars Jung
c1c25f0e28 Update build file. 2015-04-14 03:19:50 +02:00
Lars Jung
cdca37e59d Clean code. 2015-04-14 01:38:49 +02:00
Lars Jung
6137120b2e Update deps. 2015-04-13 00:13:38 +02:00
Lars Jung
f0912f9e9d Add JSCS rules and clean code. 2015-04-12 23:23:05 +02:00
Lars Jung
1623d0f60a Refactor preview extension. 2015-04-11 23:01:24 +02:00
Lars Jung
96db9677c6 Clean deps. 2015-04-11 18:35:42 +02:00
Lars Jung
bcfdec87c9 Remove Moment.js. 2015-04-11 17:38:49 +02:00
Lars Jung
488e321613 Update modulejs to 1.5.0. 2015-04-11 02:11:26 +02:00
Lars Jung
90fcae1932 Clean code. 2015-04-11 01:19:48 +02:00
Lars Jung
271c5fd9d2 Update build file. 2015-04-10 20:48:26 +02:00
Lars Jung
bd2b564876 Update mkr. 2015-04-10 16:12:05 +02:00
Lars Jung
99a45ab56e Fix preview bottom bar for small screen widths. 2015-04-10 03:55:21 +02:00
Lars Jung
18d12b6746 Update build process. 2015-04-09 23:22:37 +02:00
Lars Jung
90013da52c Updates h5bp CSS and normalize.css. 2015-04-09 02:23:33 +02:00
Lars Jung
ce6680ae19 Add fquery-autoprefixer. 2015-04-09 01:50:20 +02:00
Lars Jung
bdbaf26e9b Fix some IE10 styles. 2015-04-08 01:14:17 +02:00
Lars Jung
c487eaa846 Use wide links in tree. 2015-04-08 01:08:06 +02:00
Lars Jung
69318824f6 Compress release packages. 2015-04-07 18:33:20 +02:00
Lars Jung
fc918f1e3c Remove jscs file. 2015-04-07 00:38:59 +02:00
Lars Jung
04c574c6f9 Back to develop. 2015-04-06 21:01:40 +02:00
Lars Jung
2f9f76b361 Release h5ai v0.27.0. 2015-04-06 20:56:59 +02:00
Lars Jung
fc12ebd477 Clean some responsive styles. 2015-04-06 20:16:36 +02:00
Lars Jung
daa9e20e48 Fix crumb for small displays. 2015-04-06 18:48:03 +02:00
Lars Jung
ce2581d092 Update changelog. 2015-04-05 22:23:32 +02:00
Lars Jung
e9ac5b46d8 Add natural sort option to tree view. 2015-04-05 22:20:22 +02:00
Lars Jung
f723bcd7bb Remove Moment.js locals. 2015-04-05 02:16:33 +02:00
Lars Jung
5b2d98052c Update libs. 2015-04-05 00:50:50 +02:00
Lars Jung
3dde33336f Update changelog. 2015-04-05 00:20:53 +02:00
Lars Jung
2139d8af19 Update changelog. 2015-04-05 00:01:46 +02:00
Lars Jung
686405142b Update image preview. 2015-04-04 20:20:26 +02:00
Lars Jung
0022264a8e Update options. 2015-04-03 02:33:55 +02:00
Lars Jung
2d54c23a2c Update info bar. 2015-04-03 01:02:37 +02:00
Lars Jung
6abeb383a8 Fix layout problem in IE and clean code. 2015-04-03 00:14:02 +02:00
Lars Jung
6549a49031 Fix layout problem in IE. 2015-04-02 23:10:37 +02:00
Lars Jung
4a69e639b5 Minor changes. 2015-04-02 22:55:20 +02:00
Lars Jung
e9aa3b8743 Minor hacks in select. 2015-04-02 15:00:38 +02:00
Lars Jung
4097119d25 Fix outline. 2015-04-02 01:43:57 +02:00
Lars Jung
fe3ea4ea23 Clean code. 2015-04-02 01:31:04 +02:00
Lars Jung
42ccda167c Add info options. 2015-04-02 01:26:52 +02:00
Lars Jung
52238864c4 Update drag select. 2015-04-02 00:52:12 +02:00
Lars Jung
e3ed699260 Improve drag-select. 2015-04-01 21:31:39 +02:00
Lars Jung
936ffaf768 Update info bar styles. 2015-04-01 03:22:57 +02:00
Lars Jung
d575de2459 Initial switch to info bar. Aggregates status bar and QRCode. 2015-04-01 00:52:20 +02:00
Lars Jung
0f1b8c8856 Fix select defaults. 2015-03-31 15:45:22 +02:00
Lars Jung
35ce185ce9 Clean fallback mode. 2015-03-31 15:42:01 +02:00
Lars Jung
69e75afd88 Clean fallback mode. 2015-03-31 15:33:38 +02:00
Lars Jung
731b00790c Minor changes in fallback mode. 2015-03-31 04:14:11 +02:00
Lars Jung
469e8185e2 Minor changes in fallback mode. 2015-03-31 03:03:26 +02:00
Lars Jung
f857ae3841 Update sidebar toggle. 2015-03-30 21:59:44 +02:00
Lars Jung
6be58e6506 Darken selection rect. 2015-03-30 13:52:05 +02:00
Lars Jung
96551400c6 Remove deprecated Google Analytics code. 2015-03-30 01:14:31 +02:00
Lars Jung
ffc1da6ad1 Clean up. 2015-03-29 23:57:55 +02:00
Lars Jung
a7d114c7dd Update sidebar. 2015-03-29 21:31:51 +02:00
Lars Jung
d6a8e16aad Add h5ai version to info page. 2015-03-29 21:16:17 +02:00
Lars Jung
842e1f5e11 Update context menu. 2015-03-29 21:01:57 +02:00
Lars Jung
f18970f67f Never manage _h5ai app folder. 2015-03-29 16:47:02 +02:00
Lars Jung
2ada89e665 Update changelog. 2015-03-29 15:33:53 +02:00
Lars Jung
3cce65299b Clean styles. 2015-03-29 15:14:23 +02:00
Lars Jung
e171a0dd1a Minor fix. 2015-03-29 14:46:07 +02:00
Lars Jung
7256fa4e43 Minor fix. 2015-03-29 14:42:14 +02:00
Lars Jung
d4a72b1b11 Add autoprefixer to the build chain. 2015-03-29 01:59:39 +01:00
Lars Jung
65ca06e7ea Add contextmenu. 2015-03-29 00:31:50 +01:00
Lars Jung
962a6e9b08 Change background. 2015-03-28 20:41:33 +01:00
Lars Jung
e737b39305 Clean code. 2015-03-28 00:07:22 +01:00
Lars Jung
8637748cb7 Fix sidebar width. 2015-03-27 23:46:56 +01:00
Lars Jung
2533c80db9 Update version display. 2015-03-25 03:04:29 +01:00
Lars Jung
cc21fff7f9 Readd tree panel border. 2015-03-25 02:51:24 +01:00
Lars Jung
dea5092ae0 Clean code. 2015-03-14 15:51:39 +01:00
Lars Jung
788989c7e5 Remove jQuery.mousewheel. 2015-03-14 15:35:31 +01:00
Lars Jung
b699c3c9bd Minor changes. 2015-03-14 15:30:41 +01:00
Lars Jung
d0ab52a256 Rename selction option 'mouse' to 'clickndrag'. 2015-03-10 01:26:17 +01:00
Lars Jung
af6146a392 Merge pull request #386 from Aomeas/master
Added checkboxes selection without mouse option.
2015-03-10 01:23:06 +01:00
Lars Jung
f5de166a4e Clean code. 2015-03-10 01:17:52 +01:00
Lars Jung
015d1f58e6 Merge pull request #380 from dfransway/master
Special case the naming of archives based on a single selection.
2015-03-10 01:14:21 +01:00
Lars Jung
cfa46e4512 Clean code. 2015-03-09 01:02:12 +01:00
Lars Jung
14ecb4a8e4 Merge pull request #393 from Peer5/master
Peer5 extension
2015-03-09 00:57:03 +01:00
Lars Jung
912c10b5e9 Merge pull request #390 from frozeus/patch-1
Fix for: folders named "0" not displayed
2015-03-09 00:54:31 +01:00
Lars Jung
f7cfe7876b Merge pull request #396 from frozeus/patch-2
Insecure Font when using HTTPS
2015-03-09 00:50:32 +01:00
frozeus
c3f9b7565f Insecure Font when using HTTPS 2015-03-07 10:55:56 +01:00
whadar
b5f85b6700 fixed peer5 typo 2015-03-05 15:37:31 +02:00
whadar
2c082bb198 disable peer5 by default 2015-03-05 15:35:34 +02:00
whadar
ac691a8a0a Adding peer5 downloader (http://peer5.com/downloader) 2015-03-01 16:15:20 +02:00
frozeus
b8610fc555 Update class-app.php
Fix bug #389
2015-03-01 15:09:31 +01:00
Lars Jung
48954756e8 Add img-raw type. 2015-02-22 14:45:49 +01:00
Lars Jung
401c3fbe36 Update readme. 2015-02-22 00:18:04 +01:00
Aomeas
79d24d5f36 Added checkboxes selection without mouse option. 2015-02-21 14:25:35 +01:00
dfransway
7ef1e285fd Explicitly setting the name should override this special case. 2015-01-22 08:48:06 -08:00
dfransway
4b1ca1970a Add a special case when downloading one file to name the tar after the file, not the enclosing directory. 2015-01-19 14:25:04 -08:00
Lars Jung
46ef96a725 Minor changes. 2015-01-14 20:20:21 +01:00
Lars Jung
632d0b5fb0 Update style. 2015-01-14 19:18:55 +01:00
Lars Jung
08cd031367 Style changes. 2014-12-30 00:20:27 +01:00
Lars Jung
2132cfd45b Minor changes. 2014-12-29 20:39:05 +01:00
Lars Jung
3b1f4ffd75 Small changes. 2014-12-29 13:45:18 +01:00
Lars Jung
c7adecdbfe Fix. 2014-12-28 03:22:12 +01:00
Lars Jung
97a839c1ac Clean code. Change theme structure. 2014-12-28 03:10:00 +01:00
Lars Jung
d6a8de6d42 Update info page. 2014-12-27 21:49:25 +01:00
Lars Jung
87ce762a4d Clean svg. 2014-12-27 16:54:55 +01:00
Lars Jung
a671006e56 Update tree. 2014-12-26 14:17:32 +01:00
Lars Jung
8327617df6 More changes. 2014-12-15 12:09:51 +01:00
Lars Jung
551c031c42 Update layout. 2014-12-15 00:56:54 +01:00
Lars Jung
3aead503c1 Fix some floating point issues. 2014-12-12 02:27:55 +01:00
Lars Jung
c7c080d029 Update layout. 2014-12-11 01:35:21 +01:00
Lars Jung
707ae0547a Remove linked hover states. 2014-12-10 23:45:27 +01:00
Lars Jung
416848c79f Update info page layout. 2014-12-10 23:27:15 +01:00
Lars Jung
c276ea69bc Merge branch 'thumb' 2014-12-10 15:33:29 +01:00
Lars Jung
e5499f08e3 Update selector layout. 2014-12-10 15:31:29 +01:00
Lars Jung
a8070a10d2 Update layout. 2014-12-10 03:11:19 +01:00
Lars Jung
f5993a6ce7 Update layout. 2014-12-10 02:22:28 +01:00
Lars Jung
23fd639512 Clean code. 2014-12-09 01:54:57 +01:00
Lars Jung
1c3d8a1fba Remove spacing options. 2014-12-09 01:40:56 +01:00
Lars Jung
da309e8ee9 Update layout. Add flexible view sizes. 2014-12-09 01:40:56 +01:00
Lars Jung
bc7323b717 Update info page. 2014-12-09 01:40:56 +01:00
Lars Jung
48d197ad06 Update info page. 2014-12-09 01:40:56 +01:00
Lars Jung
7b837066ec Update notification and fix selection. 2014-12-09 01:40:56 +01:00
Lars Jung
1670528bec Clean styles. 2014-12-09 01:40:56 +01:00
Lars Jung
b0c779b514 Clean styles. 2014-12-09 01:40:56 +01:00
Lars Jung
e7ce56c252 Minor changes. 2014-12-09 01:40:56 +01:00
Lars Jung
b8bcadca36 Update layout. 2014-12-09 01:40:55 +01:00
Lars Jung
aa4b1a8acd Clean styles. 2014-12-09 01:40:55 +01:00
Lars Jung
70e348ac50 Fix info page. 2014-12-09 01:40:55 +01:00
Lars Jung
7068d354e8 Update layout. 2014-12-09 01:40:55 +01:00
Lars Jung
8b78c22be4 Update layout. 2014-12-09 01:40:55 +01:00
Lars Jung
8576de6a39 Clean view styles. 2014-12-09 01:40:55 +01:00
Lars Jung
c4f7a85baf Change link color. Update selection target. 2014-12-09 01:40:55 +01:00
Lars Jung
2870906c09 Clean view styles. 2014-12-09 01:40:55 +01:00
Lars Jung
17b3f097b4 Clean view styles. 2014-12-09 01:40:55 +01:00
Lars Jung
2a556e60d6 Update icon view and tree view. 2014-12-09 01:40:55 +01:00
Lars Jung
7f1c17043e Update PDF capture command. 2014-12-09 01:40:55 +01:00
Lars Jung
a5687fe03b Adjust font sizes. 2014-12-09 01:40:55 +01:00
Lars Jung
60b81a46ea Update layout. 2014-12-09 01:40:55 +01:00
Lars Jung
b390b9fc42 Style changes. 2014-12-09 01:40:55 +01:00
Lars Jung
041c16490b Set selection rect on top. 2014-12-09 01:40:55 +01:00
Lars Jung
4765d31a0b Style updates. 2014-12-09 01:40:55 +01:00
Lars Jung
4df73eb45c Add hint to item labels. 2014-12-09 01:40:55 +01:00
Lars Jung
4dec0ad0ae Icon view style updates. 2014-12-09 01:40:55 +01:00
Lars Jung
0ef346e6c9 Increase max size. 2014-12-09 01:40:55 +01:00
Lars Jung
bf663d575b Merge different thumb modes. 2014-12-09 01:40:55 +01:00
Lars Jung
e2fe515a97 Merge pull request #368 from LimiQS/patch-1
Update zh-cn.json.
2014-12-09 01:38:56 +01:00
Lars Jung
d026eac8f0 Merge pull request #367 from DSIW/patch-1
Add scala to types and highlighted languages
2014-12-09 01:38:26 +01:00
Limi Quens
a2b72e1098 Update zh-cn.json.
Somewhere can be better. e.g.:"Loading..." can be translated into "请稍候", "1072 bytes" and something like it (in the text previewer) can be translated into "1072 B" ("B/KB/MB" are more commonly used by Chinese OS rather than "bytes/kilobytes/megabytes")
2014-12-06 08:51:24 +08:00
DSIW
2239744cec Add scala to types and highlighted languages 2014-12-02 20:27:42 +01:00
Lars Jung
884c9cf008 Clean l10n files. 2014-11-22 21:36:28 +01:00
Lars Jung
7f641d6d0b Merge pull request #364 from frozeus/patch
Fix QrCode Size and upgrade QrCode lib.
2014-11-22 21:27:10 +01:00
Lars Jung
4575e0679c Merge pull request #363 from fx02/master
Create hr.json
2014-11-22 21:26:15 +01:00
Lars Jung
c42dd74329 Merge pull request #359 from chessmango/master
Create af.json
2014-11-22 21:25:33 +01:00
Lars Jung
93dccda48c Merge pull request #355 from bskim45/patch-1
Update ko.json
2014-11-22 21:24:58 +01:00
Lars Jung
affbdb12c0 Merge pull request #354 from rad96/patch-1
Update ru.json
2014-11-22 21:24:08 +01:00
Lars Jung
69643f4c67 Merge pull request #352 from Cyesu/patch-1
Update zh-cn.json
2014-11-22 21:23:02 +01:00
Clément Péron
ad27b21f65 Fix QrCode Size and upgrade QrCode lib 2014-11-22 13:52:55 +01:00
Zvonimir Bužanić
f39017b5ee Create hr.json 2014-11-21 21:15:40 +01:00
Owen Valentine
1a689fa8d5 Create af.json
Add l10n for Afrikaans
2014-11-04 18:00:54 +02:00
Bums Kim
443635e13a Update ko.json
Updated Korean Lauguage file for new values
2014-10-19 03:10:45 +09:00
Артём Рябков
ce1fdc2bc0 Update ru.json 2014-10-12 15:31:21 +04:00
PyropeDeHanabi
007070b8ba Update zh-cn.json 2014-10-12 02:32:56 +08:00
Lars Jung
19747761c5 Merge pull request #351 from lclzd/patch-1
Update ja.json
2014-10-06 22:18:29 +02:00
Ts
8c66b646cd Update ja.json 2014-10-07 04:55:59 +09:00
Ts
b3c068ef8a Update ja.json 2014-10-07 04:23:51 +09:00
Lars Jung
b4a8b1344a Merge pull request #349 from Kleofass/patch-1
Update sidebar. Clean l10n files.
2014-09-28 13:41:42 +02:00
Kleofass
b39d94cd97 Update sidebar. Clean l10n files. 2014-09-28 14:14:46 +03:00
Lars Jung
0cfc9a0eaa Switch to scandir. 2014-09-24 15:17:16 +02:00
Lars Jung
18a6f20390 Update changelog. 2014-09-21 01:01:31 +02:00
Lars Jung
edfcf61325 Add rounded corners to QR code. 2014-09-21 00:36:28 +02:00
Lars Jung
f1c87b4230 Refactor PHP init code. 2014-09-20 22:55:59 +02:00
Lars Jung
b94530b93d Refactor PHP init code. 2014-09-20 22:21:13 +02:00
Lars Jung
f78e6dfc64 Refactor PHP. 2014-09-20 02:55:03 +02:00
Lars Jung
d3d8e47dfc Change dep to dev deps. 2014-09-19 15:24:33 +02:00
Lars Jung
1016c46148 Test. 2014-09-14 18:50:03 +02:00
Lars Jung
56b00f7638 Test. 2014-09-14 17:45:16 +02:00
Lars Jung
40b8f4385b Update js init. 2014-09-14 13:45:26 +02:00
Lars Jung
bba2eb401d Update js init. 2014-09-14 03:52:50 +02:00
Lars Jung
c9ca2eeb23 Clean code. 2014-09-13 23:58:06 +02:00
Lars Jung
fc7d5ecfe3 Clean code. 2014-09-13 18:57:04 +02:00
Lars Jung
088a0b0839 Clean code. 2014-09-13 17:54:31 +02:00
Lars Jung
d9ff0c3cf4 Clean code. 2014-09-13 17:16:19 +02:00
Lars Jung
d9d5e9473d Update build process. 2014-09-13 16:39:38 +02:00
Lars Jung
7e25cfc774 Update readme. 2014-09-13 02:00:18 +02:00
Lars Jung
f850065cf9 Update readme. 2014-09-13 01:57:32 +02:00
Lars Jung
d3b2294a16 Update readme. 2014-09-13 01:00:29 +02:00
Lars Jung
473097fa02 Update readme. 2014-09-12 23:52:16 +02:00
Lars Jung
9a2930970c Update readme. 2014-09-12 23:25:45 +02:00
Lars Jung
8d3723c0f1 Move filesize to Util. 2014-09-12 18:27:39 +02:00
Lars Jung
943de9045d Fix typo. 2014-09-10 16:59:51 +02:00
Lars Jung
30688cbe5a Update build deps. 2014-09-06 14:42:51 +02:00
Lars Jung
101357a694 Remove ChromePhp. 2014-09-06 03:55:26 +02:00
Lars Jung
9bbee262f9 Refactor PHP files. 2014-09-06 01:02:38 +02:00
Lars Jung
6cd3cf0cb5 Replace js libs with compressed variants. 2014-09-04 21:32:35 +02:00
Lars Jung
5d584ed2b6 Remove handlebars from jade templates. 2014-09-04 00:55:27 +02:00
Lars Jung
a27489c28f Hide view settings if no choices. 2014-09-03 23:47:17 +02:00
Lars Jung
dcdcbf703e Minor tweaks. 2014-09-03 23:28:32 +02:00
Lars Jung
6fbe0e5056 Update jquery.qrcode, jquery.scrollpanel and modulejs. 2014-09-03 23:07:49 +02:00
Lars Jung
709e139b82 Update readme. 2014-09-03 21:35:06 +02:00
Lars Jung
3517fbd861 Remove fracs dep in select. 2014-09-03 21:13:43 +02:00
Lars Jung
0da6ea7f53 Remove fracs dep in preview. 2014-09-03 20:24:21 +02:00
Lars Jung
23eb8b4dc1 Extract sidebar. 2014-09-03 19:13:21 +02:00
Lars Jung
faaf71cee9 Update deps. 2014-09-02 01:39:39 +02:00
Lars Jung
165316e9c4 Remove IE edge. 2014-09-02 00:12:24 +02:00
Lars Jung
fcecdb26e9 Improve menu. 2014-09-01 23:23:02 +02:00
Lars Jung
1d24b7131f Update sidebar. Clean l10n files. 2014-09-01 20:52:03 +02:00
Lars Jung
06cfd0021d Update readme. 2014-09-01 19:14:17 +02:00
Lars Jung
b73bda4f0d Update readme. 2014-09-01 19:09:43 +02:00
Lars Jung
fa6e0595a9 Merge pull request #342 from kikorb/patch-1
Update missing translations for es-ES
2014-09-01 18:56:00 +02:00
Lars Jung
9e07ad286d Update deps. 2014-09-01 16:48:11 +02:00
Francisco Ruiz
e42b12f9b2 Update missing translations for es-ES
I just realised that a few words were missing translation. Hope this helps the project
2014-09-01 15:46:14 +02:00
Lars Jung
8951732f3c Clean code. 2014-08-30 18:53:16 +02:00
Lars Jung
ba10f70b12 Fix whitespace. 2014-08-30 14:54:00 +02:00
Lars Jung
ddbbd69b4c Merge pull request #340 from lclzd/master
Update ja.json
2014-08-30 14:50:26 +02:00
Lars Jung
cbb86faadc Update build. 2014-08-30 14:19:06 +02:00
Ts
7496738215 Update ja.json 2014-08-27 12:56:00 +09:00
Lars Jung
248bb29ccf Update readme. 2014-08-23 15:35:29 +02:00
Lars Jung
5a9e0f1e06 Update build process. 2014-08-23 15:24:54 +02:00
Lars Jung
399e0c6b80 Update readme. 2014-08-23 15:09:36 +02:00
Lars Jung
cb6a91d7d2 Update changelog. 2014-08-23 02:27:01 +02:00
Lars Jung
92b76c3fa9 Fix build process. 2014-08-23 01:33:47 +02:00
Lars Jung
715a8356eb Update build process. 2014-08-23 00:00:58 +02:00
Lars Jung
797aae9849 Fix typo. 2014-08-22 19:35:35 +02:00
Lars Jung
44227f2d67 Update modulejs to 1.0.0. 2014-08-20 01:30:26 +02:00
Lars Jung
2655a49025 Update build process. 2014-08-20 00:57:21 +02:00
Lars Jung
b0c8ea767c Update editorconfig. 2014-08-19 23:39:15 +02:00
Lars Jung
f3e448f420 Add editorconfig. 2014-08-19 23:28:48 +02:00
Lars Jung
7efd16a6e3 Remove unused var. 2014-08-17 22:28:43 +02:00
Lars Jung
cc9e342f04 Clean htaccess. 2014-08-17 18:26:42 +02:00
Lars Jung
3e55f1c648 Update build process. 2014-08-17 17:30:22 +02:00
Lars Jung
d83856be32 Update build process. 2014-08-17 03:14:26 +02:00
Lars Jung
83558e9354 7 chars should be enough. 2014-08-17 02:05:28 +02:00
Lars Jung
190275c31a Update build process. 2014-08-17 01:38:06 +02:00
Lars Jung
464dfeaa15 Back to develop mode. 2014-08-17 00:52:59 +02:00
355 changed files with 15844 additions and 30390 deletions

24
.editorconfig Normal file
View File

@@ -0,0 +1,24 @@
# editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[{package.json,.travis.yml,.eslintrc}]
indent_size = 2
[{*.md,*.pug}]
trim_trailing_whitespace = false
[*.svg]
insert_final_newline = false

3
.eslintignore Normal file
View File

@@ -0,0 +1,3 @@
build
node_modules
**/vendor

182
.eslintrc Normal file
View File

@@ -0,0 +1,182 @@
---
root: true
env:
es6: true
node: true
parserOptions:
ecmaVersion: 6
rules:
array-bracket-spacing: [2, never]
arrow-parens: [2, as-needed]
arrow-spacing: 2
block-scoped-var: 2
brace-style: [2, 1tbs, {allowSingleLine: true}]
camelcase: 0
comma-dangle: [2, never]
comma-spacing: [2, {before: false, after: true}]
comma-style: [2, last]
complexity: [1, 10] ###
computed-property-spacing: [2, never]
consistent-return: 2
consistent-this: [2, self]
constructor-super: 2
curly: [2, multi-line]
default-case: 2
dot-location: [2, property]
dot-notation: [2, {allowKeywords: true}]
eol-last: 2
eqeqeq: 2
func-names: 2
func-style: [2, declaration, {allowArrowFunctions: true}]
generator-star-spacing: [2, after]
guard-for-in: 2
handle-callback-err: 2
indent: [2, 4]
key-spacing: [2, {beforeColon: false, afterColon: true}]
keyword-spacing: [2, {before: true, after: true}]
linebreak-style: [2, unix]
max-depth: [1, 4]
max-len: [0, 80, 4]
max-nested-callbacks: [1, 3]
max-params: [1, 4] ###
max-statements: [1, 30] ###
new-cap: 0
new-parens: 2
newline-after-var: 0
no-alert: 2
no-array-constructor: 2
no-bitwise: 2
no-caller: 2
no-catch-shadow: 2
no-class-assign: 2
no-cond-assign: 2
no-console: 0 ###
no-const-assign: 2
no-constant-condition: 1
no-continue: 0
no-control-regex: 2
no-debugger: 2
no-delete-var: 2
no-div-regex: 2
no-dupe-args: 2
no-dupe-class-members: 2
no-dupe-keys: 2
no-duplicate-case: 2
no-else-return: 1
no-empty: 2
no-empty-character-class: 2
no-empty-pattern: 2
no-eq-null: 2
no-eval: 2
no-ex-assign: 2
no-extend-native: 1
no-extra-bind: 2
no-extra-boolean-cast: 2
no-extra-parens: 1
no-extra-semi: 2
no-fallthrough: 2
no-floating-decimal: 2
no-func-assign: 2
no-implicit-coercion: [2, {boolean: false, number: true, string: true}]
no-implied-eval: 2
no-inline-comments: 0
no-inner-declarations: [2, functions]
no-invalid-regexp: 2
no-invalid-this: 2
no-irregular-whitespace: 2
no-iterator: 2
no-label-var: 2
no-labels: 2
no-lone-blocks: 2
no-lonely-if: 2
no-loop-func: 1
no-magic-numbers: 0
no-mixed-requires: [2, false]
no-mixed-spaces-and-tabs: [2, false]
no-multi-spaces: 2
no-multi-str: 2
no-multiple-empty-lines: [2, {max: 4}]
no-native-reassign: 1
no-negated-in-lhs: 2
no-nested-ternary: 0
no-new: 2
no-new-func: 2
no-new-object: 2
no-new-require: 2
no-new-wrappers: 2
no-obj-calls: 2
no-octal: 2
no-octal-escape: 2
no-param-reassign: 0
no-path-concat: 2
no-plusplus: 2
no-process-env: 2
no-process-exit: 2
no-proto: 2
no-redeclare: 2
no-regex-spaces: 2
no-restricted-modules: 2
no-return-assign: 2
no-script-url: 2
no-self-compare: 2
no-sequences: 2
no-shadow: 2
no-shadow-restricted-names: 2
no-spaced-func: 2
no-sparse-arrays: 2
no-sync: 0
no-ternary: 0
no-this-before-super: 2
no-throw-literal: 1
no-trailing-spaces: 2
no-undef: 2
no-undef-init: 2
no-undefined: 0
no-underscore-dangle: 0
no-unexpected-multiline: 2
no-unneeded-ternary: 2
no-unreachable: 2
no-useless-call: 2
no-useless-concat: 2
no-unused-expressions: 2
no-unused-vars: [1, {vars: all, args: after-used}]
no-use-before-define: 2
no-var: 2
no-void: 2
no-warning-comments: [1, {terms: [todo, fixme, xxx], location: start}]
no-with: 2
object-curly-spacing: [2, never]
object-shorthand: [2, always]
one-var: [2, never]
operator-assignment: [2, always]
operator-linebreak: [2, after]
padded-blocks: [2, never]
prefer-arrow-callback: 2
prefer-const: 1
prefer-reflect: 1
prefer-spread: 2
prefer-template: 0
quote-props: [2, as-needed]
quotes: [2, single, avoid-escape]
radix: 2
require-yield: 2
semi: 2
semi-spacing: [2, {before: false, after: true}]
sort-vars: 0
space-before-blocks: [2, always]
space-before-function-paren: [2, {anonymous: always, named: never}]
space-in-parens: [2, never]
space-infix-ops: 2
space-unary-ops: [2, {words: true, nonwords: false}]
spaced-comment: [2, always]
strict: [2, never]
use-isnan: 2
valid-jsdoc: 2
valid-typeof: 2
vars-on-top: 0
wrap-iife: [2, outside]
wrap-regex: 2
yoda: [2, never, {exceptRange: true}]

3
.gitignore vendored
View File

@@ -1,5 +1,4 @@
build
local
node_modules
test
npm-debug.log

View File

@@ -1,80 +1,187 @@
# Changelog
**h5ai** uses [semantic versioning](http://semver.org/).
## v0.29.1 - *2019-01-20*
* replace `babel-preset-es2015` with `babel-preset-env`
* update `eslint` to 5.14.1
* update `ghu` to 0.12.0
* update `jsdom` to 9.2.0
* update `kjua` to 0.1.2
* update `lolight` to 0.6.0
* update `marked` to 0.6.1
* update `normalize.css` to 8.0.1
* update `scar` to 1.0.0
## v0.29.0 - *2016-08-12*
* back to cleaner visual experience
* add option to disable sidebar
* add options to filter/search ignore case
* replace PHP `getenv` calls with `$_SERVER` lookups
* add `view.fallbackMode` option to generally serve only fallback mode
* serve fallback mode for text browsers (`curl`, `links`, `lynx`, `w3m`)
* change type `txt-svg` to `img-svg`, no thumbs but preview
* fix a tree indentation glitch
* fix shell command detection on Windows
* fix Piwik anayltics
* fix `.htaccess` auth issues
* fix drag-select on scrollable content
* fix download-all function
* fix audio and video preview loading
* fix thumbnail request issues
* add `rust` type and icon
* add `autoplay` option to audio and video preview
* add `--dereference` to `shell-du` to follow sym links
* remove *Install* section from `README.md`, causes too much trouble
* remove peer5 support
* update build process to use `node 6.0+`, no need for babel now
* replace `jquery-qrcode` with [`kjua`](https://larsjung.de/kjua/)
* replace `prism` with [`lolight`](https://larsjung.de/lolight/)
* move deps to `package.json` (`normalize.css`, `kjua`, `lolight` and `marked`)
* remove `jQuery`
* remove `lodash`
* remove [`modulejs`](https://larsjung.de/modulejs/) for now
* reduce JS code by 60% (~250kb -> ~100kb)
* update languages (`et`, `nl`, `pl`)
## v0.28.0 - *2015-12-19*
* now require PHP 5.5.0+
* change index path to `/_h5ai/public/index.php`
* now only `/_h5ai/public/` needs to be web-accessible
* add support for custom script and style additions
* add options to set font families
* add search
* add ignorecase sorting option to tree
* add wide links in tree view
* add IE edge mode
* add frontend tests
* fix some styles in IE10
* fix preview bottom bar for small screen widths
* lots of code cleanup and refactorings
* change API
* update build process, now uses [`ghu`](https://larsjung.de/ghu/)
* switch from jshint and jscs to [`eslint`](http://eslint.org/)
* update `jQuery` to 2.1.4
* update `lodash` to 3.9.3 (add debounce and trim)
* update `marked` to 0.3.5
* update `modulejs` to 1.13.0
* update `prism` to 2015-12-19
* update h5bp styles to 5.2.0
* update `normalize.css` to 3.0.3
* remove `Moment.js`
## v0.27.0 - *2015-04-06*
* new layout
* add editorconfig
* drop support for IE9 (gets fallback)
* update sidebar settings
* add info sidebar
* add opt-out for click'n'drag selection
* add package name option for single selections
* add initial support for Peer5
* add option to down-sample images for preview
* add option for natural sorting in tree sidebar
* fix problems with files/folders named `0`
* change font from `Ubuntu` to `Roboto` (smaller footprint, clearer for small sizes)
* switch back to Google Fonts
* improve PDF thumbnail quality
* improve drag-select
* improve image preview
* prevent listing `_h5ai` folder and subfolders
* update build process, now uses [`mkr`](https://larsjung.de/mkr/) and [`fQuery`](https://larsjung.de/fquery/)
* update `jQuery` to 2.1.3
* update `jQuery.qrcode` to 0.11.0
* update `Lo-Dash` to 3.6.0
* update `Modernizr` to 2.8.3
* update `modulejs` to 1.4.0
* update `Moment.js` to 2.9.0
* update `Prism` to 2015-04-05
* remove deprecated Google Analytics code
* remove `jQuery.fracs`
* remove `jQuery.scrollpanel`
* remove `jQuery.mousewheel`
* update languages (`af`, `es`, `ja`, `ko`, `ru`, `zh-cn`)
## v0.26.1 - *2014-08-17*
* fixes links
* fix links
## v0.26.0 - *2014-08-16*
* removes True Type fonts
* outsources themes to [h5ai-themes](https://github.com/lrsjng/h5ai-themes)
* adds filesize fallback for large files and 32bit PHP
* fixes server detection
* adds config file tests to info page
* removes JSON shim
* adds caching of command checks
* updates `jQuery.mousewheel` to 3.1.12
* updates `jQuery.qrcode` to 0.8.0
* replaces `markdown` with [`marked`](https://github.com/chjj/marked) 0.3.2
* updates `modulejs` to 0.4.5
* updates `Moment.js` to 2.8.1
* replaces `underscore` with [`Lo-Dash`](https://github.com/lodash/lodash) 2.4.1
* replaces `SyntaxHighlighter` with [`Prism`](http://prismjs.com) 2014-08-04
* remove True Type fonts
* outsource themes to [h5ai-themes](https://github.com/lrsjng/h5ai-themes)
* add filesize fallback for large files and 32bit PHP
* fix server detection
* add config file tests to info page
* remove JSON shim
* add caching of command checks
* update `jQuery.mousewheel` to 3.1.12
* update `jQuery.qrcode` to 0.8.0
* replace `markdown` with [`marked`](https://github.com/chjj/marked) 0.3.2
* update `modulejs` to 0.4.5
* update `Moment.js` to 2.8.1
* replace `underscore` with [`Lo-Dash`](https://github.com/lodash/lodash) 2.4.1
* replace `SyntaxHighlighter` with [`Prism`](http://prismjs.com) 2014-08-04
## v0.25.2 - *2014-07-01*
* adds optional info page protection
* fixes `short_open_tag` issues for PHP < 5.4.0
* fixes default folder download (`alwaysVisible` option)
* add optional info page protection
* fix `short_open_tag` issues for PHP < 5.4.0
* fix default folder download (`alwaysVisible` option)
* minor fixes
## v0.25.1 - *2014-06-25*
* fixes broken paths for filenames containing '+' characters
* fixes Google Universal Analytics
* fixes file type check
* fix broken paths for filenames containing '+' characters
* fix Google Universal Analytics
* fix file type check
## v0.25.0 - *2014-06-22*
* adds sidebar
* adds initial theme support
* adds icons from [Evolvere Icon Theme](http://franksouza183.deviantart.com/art/Evolvere-Icon-theme-440718295)
* adds PHP variant to calc folder sizes
* adds scroll position reset on location change (issue [#279](https://github.com/lrsjng/h5ai/issues/279))
* adds option to hide unreadable files
* adds option where to place folders (top, inplace, bottom)
* adds markdown support for custom header and footer files
* adds video and audio preview via HTML5 elements (no fallback, works best in Chrome)
* adds filter reset on location change
* adds option to make download button always visible
* adds Google UA support
* extends selectable icon sizes (adds 128px, 192px, 256px, 384px)
* improves preview GUI
* add sidebar
* add initial theme support
* add icons from [Evolvere Icon Theme](http://franksouza183.deviantart.com/art/Evolvere-Icon-theme-440718295)
* add PHP variant to calc folder sizes
* add scroll position reset on location change (issue [#279](https://github.com/lrsjng/h5ai/issues/279))
* add option to hide unreadable files
* add option where to place folders (top, inplace, bottom)
* add markdown support for custom header and footer files
* add video and audio preview via HTML5 elements (no fallback, works best in Chrome)
* add filter reset on location change
* add option to make download button always visible
* add Google UA support
* extend selectable icon sizes (add 128px, 192px, 256px, 384px)
* improve preview GUI
* disable thumbs in `cache` folder
* fixes QR code URI origin (issue [#287](https://github.com/lrsjng/h5ai/issues/287))
* replaces PHP backtick operator with `exec`
* removes server side file manipulation extensions `dropbox`, `delete` and `rename`
* updates `H5BP` to 4.3.0
* updates `jQuery` to 2.1.1
* updates `json2.js` to 2014-02-04
* updates `markdown-js` to 0.5.0
* updates `Modernizr` to 2.8.2
* updates `Moment.js` to 2.6.0
* updates `Underscore.js` to 1.6.0
* language updates (`bg`, `ko`, `pt`, `sl`, `sv`, `zh-cn`)
* fix QR code URI origin (issue [#287](https://github.com/lrsjng/h5ai/issues/287))
* replace PHP backtick operator with `exec`
* remove server side file manipulation extensions `dropbox`, `delete` and `rename`
* update `H5BP` to 4.3.0
* update `jQuery` to 2.1.1
* update `json2.js` to 2014-02-04
* update `markdown-js` to 0.5.0
* update `Modernizr` to 2.8.2
* update `Moment.js` to 2.6.0
* update `Underscore.js` to 1.6.0
* update languages (`bg`, `ko`, `pt`, `sl`, `sv`, `zh-cn`)
## v0.24.1 - *2014-04-09*
* security fixes! (issues [#268](https://github.com/lrsjng/h5ai/issues/268), [#269](https://github.com/lrsjng/h5ai/issues/269))
* language updates (`fi`, `fr`, `hi`, `it`, `zh-tw`)
* fixes WinOS command detection
* fix WinOS command detection
* update languages (`fi`, `fr`, `hi`, `it`, `zh-tw`)
## v0.24.0 - *2013-09-04*
@@ -169,9 +276,9 @@
* changes language code `gr` to `el`
* adds localization for filter placeholder
* adds `hu` translation by [Rodolffo](https://github.com/Rodolffo)
* updates to [jQuery.qrcode](http://larsjung.de/qrcode/) 0.2
* updates to [jQuery.scrollpanel](http://larsjung.de/scrollpanel/) 0.1
* updates to [modulejs](http://larsjung.de/modulejs/) 0.2
* updates to [jQuery.qrcode](https://larsjung.de/qrcode/) 0.2
* updates to [jQuery.scrollpanel](https://larsjung.de/scrollpanel/) 0.1
* updates to [modulejs](https://larsjung.de/modulejs/) 0.2
* updates to [Moment.js](http://momentjs.com) 1.7.0
* updates to [Underscore.js](http://underscorejs.org) 1.3.3

View File

@@ -1,41 +1,38 @@
# h5ai
[![license][license-img]][gh] [![web][web-img]][web] [![github][gh-img]][gh]
[![license][license-img]][github] [![web][web-img]][web] [![github][github-img]][github]
A modern HTTP web server index for Apache httpd, lighttpd, nginx and Cherokee.
For bug reports and feature requests please use [issues][gh-issues].
## Install
## Important
Do **not** install any files from the `src` folder, they need to be
preprocessed to work correctly! Find a preprocessed package and detailed
install instructions on the [project page][web].
* Do **not** install any files from the `src` folder, they need to be
preprocessed to work correctly!
* Find a preprocessed package and detailed install instructions on the
[project page][web].
* For bug reports and feature requests please use [issues][github-issues].
## Build
There are installation ready packages for the latest [releases][release] and
[dev builds][develop]. But if you want to build **h5ai** yourself you need to
install the build tool [fQuery][fquery] first:
[dev builds][develop]. But to build **h5ai** yourself either `git clone` or
download the repository. From within the root folder run the following
commands to find a fresh zipball in folder `build` (tested on linux only,
requires [`node 6.0+`][node] to be installed).
> npm install -g fquery@0.11.0
This will globally install fQuery and its command line tool `makejs`. Run
`makejs --help` to see if everything worked fine. To clone and build the
project run the following commands, this will create a new folder `build`
including a fresh zipball.
> git clone git://github.com/lrsjng/h5ai.git
> cd h5ai
> makejs release
~~~sh
> npm install
> npm run build
~~~
## License
The MIT License (MIT)
Copyright (c) 2014 Lars Jung (http://larsjung.de)
Copyright (c) 2019 Lars Jung (https://larsjung.de)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -58,29 +55,18 @@ THE SOFTWARE.
## References
**h5ai** profits from these great projects:
[GNOME&nbsp;Symbolic&nbsp;Icons](https://github.com/GNOME/gnome-icon-theme-symbolic)&nbsp;(CC BY-SA 3.0),
[HTML5&nbsp;★&nbsp;Boilerplate](http://html5boilerplate.com)&nbsp;(MIT),
[jQuery](http://jquery.com)&nbsp;(MIT),
[jQuery.fracs](http://larsjung.de/fracs/)&nbsp;(MIT),
[jQuery.mousewheel](https://github.com/brandonaaron/jquery-mousewheel)&nbsp;(MIT),
[jQuery.qrcode](http://larsjung.de/qrcode/)&nbsp;(MIT),
[jQuery.scrollpanel](http://larsjung.de/scrollpanel/)&nbsp;(MIT),
[Lo-Dash](http://lodash.com)&nbsp;(MIT),
[marked](https://github.com/chjj/marked)&nbsp;(MIT),
[Modernizr](http://www.modernizr.com)&nbsp;(MIT/BSD),
[modulejs](http://larsjung.de/modulejs/)&nbsp;(MIT),
[Moment.js](http://momentjs.com)&nbsp;(MIT),
[Prism](http://prismjs.com)&nbsp;(MIT)
**h5ai** profits from other projects, all of them licensed under the MIT license
too. Exceptions are some [Material Design icons][material-design-icons] (CC BY 4.0).
[web]: http://larsjung.de/h5ai/
[gh]: https://github.com/lrsjng/h5ai
[gh-issues]: https://github.com/lrsjng/h5ai/issues
[release]: http://release.larsjung.de/h5ai/
[develop]: http://release.larsjung.de/h5ai/develop/
[fquery]: http://larsjung.de/fquery/
[web]: https://larsjung.de/h5ai/
[github]: https://github.com/lrsjng/h5ai
[github-issues]: https://github.com/lrsjng/h5ai/issues
[release]: https://release.larsjung.de/h5ai/
[develop]: https://release.larsjung.de/h5ai/develop/
[node]: https://nodejs.org
[material-design-icons]: https://github.com/google/material-design-icons
[license-img]: http://img.shields.io/badge/license-MIT-a0a060.svg?style=flat-square
[web-img]: http://img.shields.io/badge/web-larsjung.de/h5ai-a0a060.svg?style=flat-square
[gh-img]: http://img.shields.io/badge/github-lrsjng/h5ai-a0a060.svg?style=flat-square
[license-img]: https://img.shields.io/badge/license-MIT-a0a060.svg?style=flat-square
[web-img]: https://img.shields.io/badge/web-larsjung.de/h5ai-a0a060.svg?style=flat-square
[github-img]: https://img.shields.io/badge/github-lrsjng/h5ai-a0a060.svg?style=flat-square

169
ghu.js Normal file
View File

@@ -0,0 +1,169 @@
const {resolve, join} = require('path');
const {
ghu, autoprefixer, cssmin, each, ife, includeit, jszip, less, mapfn,
newerThan, pug, read, remove, run, uglify, watch, webpack, wrap, write
} = require('ghu');
const ROOT = resolve(__dirname);
const SRC = join(ROOT, 'src');
const TEST = join(ROOT, 'test');
const BUILD = join(ROOT, 'build');
const mapper = mapfn.p(SRC, BUILD).s('.less', '.css').s('.pug', '');
const webpackCfg = include => ({
module: {
loaders: [
{
include,
loader: 'babel-loader',
query: {
cacheDirectory: true,
presets: ['babel-preset-env']
}
},
{
test: /jsdom/,
loader: 'null-loader'
}
]
}
});
ghu.defaults('release');
ghu.before(runtime => {
runtime.pkg = Object.assign({}, require('./package.json'));
const res = run.sync(`git rev-list v${runtime.pkg.version}..HEAD`, {silent: true});
if (res.code === 0) {
const hashes = res.stdout.split(/\r?\n/).filter(x => x);
if (hashes.length) {
const counter = ('000' + hashes.length).substr(-3);
const hash = hashes[0].substr(0, 7);
runtime.pkg.version += `+${counter}~${hash}`;
}
}
runtime.comment = `${runtime.pkg.name} v${runtime.pkg.version} - ${runtime.pkg.homepage}`;
runtime.commentJs = `/* ${runtime.comment} */\n`;
runtime.commentHtml = `<!-- ${runtime.comment} -->`;
console.log(runtime.comment);
});
ghu.task('force-production', 'ensure :production flag is set', runtime => {
if (!runtime.args.production) {
runtime.args.production = true;
console.log('forcing production mode');
}
});
ghu.task('clean', 'delete build folder', () => {
return remove(BUILD);
});
ghu.task('lint', 'lint all JavaScript files with eslint', () => {
return run('eslint .', {stdio: 'inherit'});
});
ghu.task('build:scripts', runtime => {
return read(`${SRC}/_h5ai/public/js/scripts.js`)
.then(newerThan(mapper, `${SRC}/_h5ai/public/js/**`))
.then(webpack(webpackCfg([SRC]), {showStats: false}))
.then(wrap('\n\n// @include "pre.js"\n\n'))
.then(includeit())
.then(ife(() => runtime.args.production, uglify({compressor: {warnings: false}})))
.then(wrap(runtime.commentJs))
.then(write(mapper, {overwrite: true}));
});
ghu.task('build:styles', runtime => {
return read(`${SRC}/_h5ai/public/css/*.less`)
.then(newerThan(mapper, `${SRC}/_h5ai/public/css/**`))
.then(includeit())
.then(less())
.then(autoprefixer())
.then(ife(() => runtime.args.production, cssmin()))
.then(wrap(runtime.commentJs))
.then(write(mapper, {overwrite: true}));
});
ghu.task('build:pages', runtime => {
return read(`${SRC}: **/*.pug, ! **/*.tpl.pug`)
.then(newerThan(mapper, `${SRC}/**/*.tpl.pug`))
.then(pug({pkg: runtime.pkg}))
.then(wrap('', runtime.commentHtml))
.then(write(mapper, {overwrite: true}));
});
ghu.task('build:copy', runtime => {
const mapperRoot = mapfn.p(ROOT, join(BUILD, '_h5ai'));
return Promise.all([
read(`${SRC}/**/conf/*.json`)
.then(newerThan(mapper))
.then(wrap(runtime.commentJs))
.then(write(mapper, {overwrite: true, cluster: true})),
read(`${SRC}: **, ! **/*.js, ! **/*.less, ! **/*.pug, ! **/conf/*.json`)
.then(newerThan(mapper))
.then(each(obj => {
if ((/index\.php$/).test(obj.source)) {
obj.content = obj.content.replace('{{VERSION}}', runtime.pkg.version);
}
}))
.then(write(mapper, {overwrite: true, cluster: true})),
read(`${ROOT}/*.md`)
.then(newerThan(mapperRoot))
.then(write(mapperRoot, {overwrite: true, cluster: true}))
]);
});
ghu.task('build:tests', ['build:styles'], 'build the test suite', () => {
return Promise.all([
read(`${BUILD}/_h5ai/public/css/styles.css`)
.then(newerThan(`${BUILD}/test/h5ai-styles.css`))
.then(write(`${BUILD}/test/h5ai-styles.css`, {overwrite: true})),
read(`${TEST}/index.html`)
.then(newerThan(`${BUILD}/test/index.html`))
.then(write(`${BUILD}/test/index.html`, {overwrite: true})),
read(`${TEST}: index.js`)
.then(webpack(webpackCfg([SRC, TEST]), {showStats: false}))
.then(wrap(`\n\n// @include "${SRC}/**/js/pre.js"\n\n`))
.then(includeit())
.then(write(mapfn.p(TEST, `${BUILD}/test`), {overwrite: true}))
]).then(() => {
console.log(`browse to file://${BUILD}/test/index.html to run the test suite`);
});
});
ghu.task('build', ['build:scripts', 'build:styles', 'build:pages', 'build:copy', 'build:tests'],
'build all updated files, optionally use :production');
ghu.task('deploy', ['build'], 'deploy to a specified path with :dest=/some/path', runtime => {
if (typeof runtime.args.dest !== 'string') {
throw new Error('no destination path (e.g. :dest=/some/path)');
}
console.log(`deploy to ${runtime.args.dest}`);
const mapperDeploy = mapfn.p(BUILD, resolve(runtime.args.dest));
return read(`${BUILD}/_h5ai/**`)
.then(newerThan(mapperDeploy))
.then(write(mapperDeploy, {overwrite: true, cluster: true}));
});
ghu.task('watch', runtime => {
return watch([SRC, TEST], () => ghu.run(runtime.sequence.filter(x => x !== 'watch'), runtime.args, true));
});
ghu.task('release', ['force-production', 'clean', 'build'], 'create a zipball', runtime => {
const target = join(BUILD, `${runtime.pkg.name}-${runtime.pkg.version}.zip`);
return read(`${BUILD}/_h5ai/**`)
.then(jszip({dir: BUILD, level: 9}))
.then(write(target, {overwrite: true}));
});

View File

@@ -1,161 +0,0 @@
/*jshint node: true */
'use strict';
module.exports = function (make) {
var path = require('path'),
pkg = require('./package.json'),
root = path.resolve(__dirname),
src = path.join(root, 'src'),
build = path.join(root, 'build'),
$ = make.fQuery,
mapSrc = $.map.p(src, build).s('.less', '.css').s('.jade', ''),
mapRoot = $.map.p(root, path.join(build, '_h5ai'));
make.version('>=0.10.0');
make.defaults('build');
make.target('check-version', [], 'add git info to dev builds').async(function (done, fail) {
if (!pkg.develop) {
done();
return;
}
$.git(root, function (err, result) {
pkg.version += '+' + result.buildSuffix;
$.info({ method: 'check-version', message: 'version set to ' + pkg.version });
done();
});
});
make.target('clean', [], 'delete build folder').sync(function () {
$.DELETE(build);
});
make.target('lint', [], 'lint all JavaScript files with JSHint').sync(function () {
var jshint = {
// Enforcing Options
bitwise: true,
curly: true,
eqeqeq: true,
forin: true,
latedef: true,
newcap: true,
noempty: true,
plusplus: true,
trailing: true,
undef: true,
// Environments
browser: true
},
globals = {
'modulejs': true
};
$(src + '/_h5ai/client/js: **/*.js, ! lib/**')
.jshint(jshint, globals);
});
make.target('build', ['check-version'], 'build all updated files').sync(function () {
var env = {pkg: pkg};
var header = '/* ' + pkg.name + ' ' + pkg.version + ' - ' + pkg.homepage + ' */\n';
$(src + ': _h5ai/client/js/*.js')
.newerThan(mapSrc, $(src + ': _h5ai/client/js/**'))
.includify()
.uglifyjs()
.wrap(header)
.WRITE(mapSrc);
$(src + ': _h5ai/client/css/*.less')
.newerThan(mapSrc, $(src + ': _h5ai/client/css/**'))
.less()
.cssmin()
.wrap(header)
.WRITE(mapSrc);
$(src + ': **/*.jade')
.newerThan(mapSrc)
.handlebars(env)
.jade()
.WRITE(mapSrc);
$(src + ': **, ! _h5ai/client/js/**, ! _h5ai/client/css/**, ! **/*.jade')
.newerThan(mapSrc)
.handlebars(env)
.WRITE(mapSrc);
$(src + ': _h5ai/client/css/fonts/**')
.newerThan(mapSrc)
.WRITE(mapSrc);
$(root + ': *.md')
.newerThan(mapRoot)
.WRITE(mapRoot);
});
make.target('build-uncompressed', ['check-version'], 'build all updated files without compression').sync(function () {
var env = {pkg: pkg};
var header = '/* ' + pkg.name + ' ' + pkg.version + ' - ' + pkg.homepage + ' */\n';
$(src + ': _h5ai/client/js/*.js')
.newerThan(mapSrc, $(src + ': _h5ai/client/js/**'))
.includify()
// .uglifyjs()
.wrap(header)
.WRITE(mapSrc);
$(src + ': _h5ai/client/css/*.less')
.newerThan(mapSrc, $(src + ': _h5ai/client/css/**'))
.less()
// .cssmin()
.wrap(header)
.WRITE(mapSrc);
$(src + ': **/*.jade')
.newerThan(mapSrc)
.handlebars(env)
.jade()
.WRITE(mapSrc);
$(src + ': **, ! _h5ai/client/js/**, ! _h5ai/client/css/**, ! **/*.jade')
.newerThan(mapSrc)
.handlebars(env)
.WRITE(mapSrc);
$(src + ': _h5ai/client/css/fonts/**')
.newerThan(mapSrc)
.WRITE(mapSrc);
$(root + ': *.md')
.newerThan(mapRoot)
.WRITE(mapRoot);
});
make.target('release', ['clean', 'build'], 'create a zipball').async(function (done, fail) {
$(build + ': **').shzip({
target: path.join(build, pkg.name + '-' + pkg.version + '.zip'),
dir: build,
callback: done
});
});
};

6579
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,22 +1,32 @@
{
"name": "h5ai",
"version": "0.26.1",
"develop": false,
"description": "a modern HTTP web server index",
"homepage": "http://larsjung.de/h5ai/",
"version": "0.29.1",
"description": "Modern HTTP web server index.",
"homepage": "https://larsjung.de/h5ai/",
"bugs": "https://github.com/lrsjng/h5ai/issues",
"author": "Lars Jung <lrsjng@gmail.com> (http://larsjung.de)",
"author": "Lars Jung <lrsjng@gmail.com> (https://larsjung.de)",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/lrsjng/h5ai.git"
},
"scripts": {
"test": "mocha --recursive test"
"build": "node ghu release"
},
"devDependencies": {
"lodash": "~2.4.1",
"mocha": "~1.21.3",
"zombie": "~2.0.0-alpha31"
"babel-loader": "6.2.4",
"babel-preset-env": "1.7.0",
"eslint": "5.14.1",
"ghu": "0.12.0",
"jsdom": "9.2.0",
"kjua": "0.1.2",
"lolight": "0.6.0",
"marked": "0.6.1",
"normalize.css": "8.0.1",
"null-loader": "0.1.1",
"scar": "1.0.0"
},
"engines": {
"node": ">=10.0.0"
}
}

4
src/.eslintrc Normal file
View File

@@ -0,0 +1,4 @@
---
rules:
no-console: 1
prefer-reflect: 0

View File

@@ -1,17 +1,30 @@
DirectoryIndex index.html
## details here: https://github.com/h5bp/server-configs-apache
## SECURITY ###################################################################
# ------------------------------------------------------------------------------
# | File access |
# ------------------------------------------------------------------------------
DirectoryIndex disabled
FileETag None
ServerSignature Off
# Block access to directories without a default document.
# Usually you should leave this uncommented because you shouldn't allow anyone
# to surf through every directory on your server (which may includes rather
# private places like the CMS's directories).
# Apache < 2.3
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
# Apache ≥ 2.3
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header unset ETag
Header unset X-Powered-By
</IfModule>
<IfModule mod_autoindex.c>
Options -Indexes
@@ -19,97 +32,134 @@ DirectoryIndex index.html
## COMPAT #####################################################################
# ------------------------------------------------------------------------------
# | Better website experience |
# ------------------------------------------------------------------------------
# Force IE to render pages in the highest available mode in the various
# cases when it may not: http://hsivonen.iki.fi/doctype/ie-mode.pdf.
# Use, if installed, Google Chrome Frame.
<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=edge,chrome=1"
# `mod_headers` can't match based on the content-type, however, we only
# want to send this header for HTML pages and not for the other resources
<FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$">
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
# ------------------------------------------------------------------------------
# | UTF-8 encoding |
# ------------------------------------------------------------------------------
# Use UTF-8 encoding for anything served as `text/html` or `text/plain`.
AddDefaultCharset utf-8
# Force UTF-8 for certain file formats.
<IfModule mod_mime.c>
AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml
AddCharset utf-8 .css .html .js .json .php .svg
AddType application/font-woff woff
AddType application/font-woff2 woff2
AddType application/json json
AddType application/javascript js
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttc ttf
AddType image/jpeg jpeg jpg
AddType image/png png
AddType image/svg+xml svg svgz
AddType image/x-icon ico
AddType font/opentype otf
AddType text/css css
AddType text/html html
</IfModule>
# ------------------------------------------------------------------------------
# | Expires headers (for better cache control) |
# ------------------------------------------------------------------------------
# The following expires headers are set pretty far in the future. If you don't
# control versioning with filename-based cache busting, consider lowering the
# cache time for resources like CSS and JS to something like 1 week.
## SPEED ######################################################################
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 week"
# Data interchange
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
# Favicon (cannot be renamed!)
ExpiresByType text/html "access plus 1 minute"
ExpiresByType image/x-icon "access plus 1 week"
# HTML components (HTCs)
ExpiresByType text/x-component "access plus 1 month"
# HTML
ExpiresByType text/html "access plus 0 seconds"
# JavaScript
ExpiresByType application/javascript "access plus 1 week"
# Manifest files
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Media
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# Web feeds
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
# Web fonts
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
</IfModule>
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
# Apache ≥ 2.3
<IfModule mod_authz_core.c>
# mod_filter as module only available for Apache ≥ 2.3.7
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/atom+xml" \
"application/javascript" \
"application/json" \
"application/ld+json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/vnd.geo+json" \
"application/vnd.ms-fontobject" \
"application/x-font-ttf" \
"application/x-javascript" \
"application/x-web-app-manifest+json" \
"application/xhtml+xml" \
"application/xml" \
"font/eot" \
"font/opentype" \
"image/bmp" \
"image/svg+xml" \
"image/vnd.microsoft.icon" \
"image/x-icon" \
"text/cache-manifest" \
"text/css" \
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vnd.rim.location.xloc" \
"text/vtt" \
"text/x-component" \
"text/x-cross-domain-policy" \
"text/xml"
</IfModule>
</IfModule>
# Apache < 2.3
<IfModule !mod_authz_core.c>
AddOutputFilterByType DEFLATE "application/atom+xml" \
"application/javascript" \
"application/json" \
"application/ld+json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/vnd.geo+json" \
"application/vnd.ms-fontobject" \
"application/x-font-ttf" \
"application/x-javascript" \
"application/x-web-app-manifest+json" \
"application/xhtml+xml" \
"application/xml" \
"font/eot" \
"font/opentype" \
"image/bmp" \
"image/svg+xml" \
"image/vnd.microsoft.icon" \
"image/x-icon" \
"text/cache-manifest" \
"text/css" \
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vnd.rim.location.xloc" \
"text/vtt" \
"text/x-component" \
"text/x-cross-domain-policy" \
"text/xml"
</IfModule>
<IfModule mod_mime.c>
AddEncoding gzip gz
AddEncoding gzip svgz
</IfModule>
</IfModule>

View File

@@ -1,96 +0,0 @@
-------------------------------
UBUNTU FONT LICENCE Version 1.0
-------------------------------
PREAMBLE
This licence allows the licensed fonts to be used, studied, modified and
redistributed freely. The fonts, including any derivative works, can be
bundled, embedded, and redistributed provided the terms of this licence
are met. The fonts and derivatives, however, cannot be released under
any other licence. The requirement for fonts to remain under this
licence does not require any document created using the fonts or their
derivatives to be published under this licence, as long as the primary
purpose of the document is not to be a vehicle for the distribution of
the fonts.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this licence and clearly marked as such. This may
include source files, build scripts and documentation.
"Original Version" refers to the collection of Font Software components
as received under this licence.
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to
a new environment.
"Copyright Holder(s)" refers to all individuals and companies who have a
copyright ownership of the Font Software.
"Substantially Changed" refers to Modified Versions which can be easily
identified as dissimilar to the Font Software by users of the Font
Software comparing the Original Version with the Modified Version.
To "Propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification and with or without charging
a redistribution fee), making available to the public, and in some
countries other activities as well.
PERMISSION & CONDITIONS
This licence does not grant any rights under trademark law and all such
rights are reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of the Font Software, to propagate the Font Software, subject to
the below conditions:
1) Each copy of the Font Software must contain the above copyright
notice and this licence. These can be included either as stand-alone
text files, human-readable headers or in the appropriate machine-
readable metadata fields within text or binary files as long as those
fields can be easily viewed by the user.
2) The font name complies with the following:
(a) The Original Version must retain its name, unmodified.
(b) Modified Versions which are Substantially Changed must be renamed to
avoid use of the name of the Original Version or similar names entirely.
(c) Modified Versions which are not Substantially Changed must be
renamed to both (i) retain the name of the Original Version and (ii) add
additional naming elements to distinguish the Modified Version from the
Original Version. The name of such Modified Versions must be the name of
the Original Version, with "derivative X" where X represents the name of
the new work, appended to that name.
3) The name(s) of the Copyright Holder(s) and any contributor to the
Font Software shall not be used to promote, endorse or advertise any
Modified Version, except (i) as required by this licence, (ii) to
acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with
their explicit written permission.
4) The Font Software, modified or unmodified, in part or in whole, must
be distributed entirely under this licence, and must not be distributed
under any other licence. The requirement for fonts to remain under this
licence does not affect any document created using the Font Software,
except any version of the Font Software extracted from a document
created using the Font Software may only be distributed under this
licence.
TERMINATION
This licence becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
DEALINGS IN THE FONT SOFTWARE.

View File

@@ -1,15 +0,0 @@
----------------------
Ubuntu Font Family
======================
The Ubuntu Font Family are a set of matching new libre/open fonts in
development during 2010--2011. The development is being funded by
Canonical Ltd on behalf the wider Free Software community and the
Ubuntu project. The technical font design work and implementation is
being undertaken by Dalton Maag.
Both the final font Truetype/OpenType files and the design files used
to produce the font family are distributed under an open licence and
you are expressly encouraged to experiment, modify, share and improve.
http://font.ubuntu.com/

View File

@@ -1,73 +0,0 @@
#bottombar {
position: fixed;
z-index: 5;
width: 100%;
height: 18px;
left: 0;
bottom: 0;
padding: 6px 0 8px 0;
background-color: @col-widget-back;
border-top: @border-widget;
color: #999;
text-align: center;
a, a:active, a:visited {
color: #555;
text-decoration: none;
.transition(all 0.2s ease-in-out);
opacity: 0.7;
&:hover {
color: @col-hover;
opacity: 1;
}
}
.left {
position: absolute;
left: 0;
display: block;
padding: 0 8px;
}
.center {
display: block;
}
.right {
position: absolute;
right: 0;
display: block;
padding: 0 8px;
}
.noJsMsg {
color: @col-error;
margin-left: 16px;
}
.noBrowserMsg {
color: @col-error;
margin-left: 16px;
a, a:active, a:visited {
color: @col-error;
text-decoration: underline;
opacity: 1;
&:hover {
color: @col-hover;
}
}
}
.status {
.sep {
display: inline-block;
padding: 0 6px;
&:before {
content: '·'
}
}
&.default {
}
&.dynamic {
display: none;
}
}
}

View File

@@ -1,34 +0,0 @@
#content {
max-width: 960px;
margin: 50px auto;
font-size: 15px;
}
#content-header, #content-footer {
color: #333;
a, a:active, a:visited {
color: @col-link;
text-decoration: none;
cursor: pointer;
&:hover {
color: #555;
}
}
pre, code {
font-family: @font-family-mono;
}
}
#content-header {
padding-bottom: 12px;
margin-bottom: 32px;
}
#content-footer {
padding-top: 12px;
margin-top: 32px;
}

View File

@@ -1,32 +0,0 @@
#view .context-menu {
display: block;
position: absolute;
right: 0;
top: 0;
background-color: @col-widget-back;
border: @border-widget;
color: #999;
z-index: 10;
font-size: 0.9em;
ul {
margin: 0;
padding: 0;
list-style: none;
text-align: left;
li {
padding: 8px 12px 10px 12px;
white-space: nowrap;
border-top: @border-widget-sep;
.transition(all 0.2s ease-in-out);
&:hover {
color: @col-hover;
background-color: @col-widget-back-hover;
}
}
}
}

View File

@@ -1,10 +0,0 @@
#download {
display: none;
.topbar-right;
.transition(all 0.2s ease-in-out);
&.failed {
background-color: rgba(255,0,0,0.5);
}
}

View File

@@ -1,71 +0,0 @@
#fallback {
display: none;
max-width: 960px;
margin: 80px auto;
table {
display: block;
width: 100%;
border-collapse: collapse;
th, td {
padding: 6px;
text-align: left;
border: none;
}
th {
padding-bottom: 18px;
color: #555;
font-weight: normal;
opacity: 0.4;
}
td {
border-bottom: 1px solid @col-border;
overflow: hidden;
white-space: nowrap;
font-size: 15px;
a, a:active, a:visited {
display: block;
color: #555;
text-decoration: none;
cursor: pointer;
&:hover {
color: @col-hover;
}
}
}
.fb-i {
width: 24px;
img {
width: 24px;
height: 24px;
}
}
.fb-n {
width: 682px;
max-width: 682px;
}
.fb-d {
text-align: right;
width: 160px;
min-width: 160px;
}
.fb-s {
text-align: right;
width: 70px;
min-width: 70px;
}
}
}
html.no-js, html.no-browser {
#fallback {
display: block;
}
}

View File

@@ -1,19 +0,0 @@
#filter {
.topbar-right;
input {
border: none;
font-family: @font-family;
color: @col;
background-color: rgba(0,0,0,0);
width: 30px;
outline: none;
}
&.current {
input {
width: 150px;
}
}
}

View File

@@ -1,56 +0,0 @@
@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 300;
src: local('Ubuntu Light'), local('Ubuntu-Light'), url(fonts/Ubuntu-L.woff) format('woff');
}
@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 700;
src: local('Ubuntu Bold'), local('Ubuntu-Bold'), url(fonts/Ubuntu-B.woff) format('woff');
}
@font-face {
font-family: 'Ubuntu';
font-style: italic;
font-weight: 300;
src: local('Ubuntu Light Italic'), local('Ubuntu-LightItalic'), url(fonts/Ubuntu-LI.woff) format('woff');
}
@font-face {
font-family: 'Ubuntu';
font-style: italic;
font-weight: 700;
src: local('Ubuntu Bold Italic'), local('Ubuntu-BoldItalic'), url(fonts/Ubuntu-BI.woff) format('woff');
}
@font-face {
font-family: 'Ubuntu Mono';
font-style: normal;
font-weight: 400;
src: local('Ubuntu Mono'), local('UbuntuMono-Regular'), url(fonts/UbuntuMono-R.woff) format('woff');
}
@font-face {
font-family: 'Ubuntu Mono';
font-style: normal;
font-weight: 700;
src: local('Ubuntu Mono Bold'), local('UbuntuMono-Bold'), url(fonts/UbuntuMono-B.woff) format('woff');
}
@font-face {
font-family: 'Ubuntu Mono';
font-style: italic;
font-weight: 400;
src: local('Ubuntu Mono Italic'), local('UbuntuMono-Italic'), url(fonts/UbuntuMono-RI.woff) format('woff');
}
@font-face {
font-family: 'Ubuntu Mono';
font-style: italic;
font-weight: 700;
src: local('Ubuntu Mono Bold Italic'), local('UbuntuMono-BoldItalic'), url(fonts/Ubuntu-BI.woff) format('woff');
}

View File

@@ -1,70 +0,0 @@
@col: rgb(85,85,85);
@col-back: rgb(255,255,255);
@col-hover: rgb(29,119,194);
@col-border: rgba(0,0,0,0.05);
@col-border-strong: rgba(0,0,0,0.15);
@col-border-stronger: rgba(0,0,0,0.3);
@col-error: rgb(204,51,51);
@col-link: rgb(29,119,194);
@col-link-hover: rgb(29,119,194);
@col-widget-back: rgb(245,245,245);
@col-widget-back-highlight: rgba(255,255,255,0.8);
@col-widget-back-hover: rgba(255,255,255,0.8);
@col-widget-back-sel: rgba(255,255,255,0.8);
@col-widget-sep: @col-border;
@col-sb-back: rgba(0,0,0,0.08);
@col-sb-thumb: rgba(0,0,0,0.15);
@col-sb-thumb-active: rgba(0,0,0,0.25);
@col-range-back: rgb(224,224,224);
@col-range-thumb: rgb(190,190,190);
@border-widget: 1px solid @col-border;
@border-widget-sep: 1px solid @col-widget-sep;
@font-family: Ubuntu, Helvetica, Arial, sans-serif;
@font-weight: 300;
@font-family-mono: "Ubuntu Mono", monospace;
::-moz-selection { background: #68A9FF; color: #fff; text-shadow: none; }
::selection { background: #68A9FF; color: #fff; text-shadow: none; }
.transition (@transition) {
-webkit-transition: @transition;
transition: @transition;
}
.transform (@transform) {
-webkit-transform: @transform;
-ms-transform: @transform;
transform: @transform;
zoom: 1;
}
html {
min-height: 100%;
overflow: auto;
overflow-y: scroll;
&.js .noJsMsg {
display: none;
}
&.browser .noBrowserMsg {
display: none;
}
}
body {
font-family: @font-family;
font-size: 13px;
font-weight: @font-weight;
color: @col;
background-color: @col-back;
margin: 30px;
}

View File

@@ -1,147 +0,0 @@
body#h5ai-info {
font-family: @font-family;
margin: 2em auto 4em auto;
font-size: 20px;
color: @col;
max-width: 600px;
text-align: center;
a, a:active, a:visited {
color: @col;
text-decoration: none;
.transition(all 0.2s ease-in-out);
&:hover {
color: @col-hover;
}
}
code {
margin: 0 0.2em;
padding: 2px 4px;
border-radius: 4px;
font-family: @font-family-mono;
letter-spacing: 0.1em;
background-color: @col-widget-back;
border: @border-widget;
}
h1 {
font-size: 3.6em;
margin: 0;
}
h2 {
font-size: 1.15em;
margin: 2.6em 0 0 0;
}
#support {
margin: 12px auto 24px auto;
padding: 6px 18px;
width: 164px;
font-size: 12px;
background: @col-widget-back;
border: @border-widget;
border-radius: 4px;
.paypal {
margin: 6px 0 0 0;
}
}
#login-wrapper {
font-size: 14px;
}
#pass {
-moz-appearance: none;
-ms-appearance: none;
-webkit-appearance: none;
font-family: @font-family;
font-weight: @font-weight;
color: @col;
background: @col-widget-back-highlight;
border: @border-widget;
outline: none;
display: inline-block;
width: 200px;
height: 27px;
padding: 0 6px;
margin: 8px;
}
#login, #logout {
display: inline-block;
padding: 4px 16px;
margin: 8px;
background-color: @col-widget-back;
border: @border-widget;
cursor: pointer;
color: @col;
cursor: pointer;
text-decoration: none;
.transition(all 0.2s ease-in-out);
&:hover, &.hover {
background-color: @col-widget-back-highlight;
color: @col-hover;
}
}
#hint {
margin: 12px auto;
width: 360px;
color: @col;
font-size: 12px;
}
#tests-wrapper {
margin: 96px 0;
}
#tests {
display: inline-block;
list-style-type: none;
text-align: left;
margin: 0;
padding: 0;
.test {
margin: 12px 0 0 0;
padding: 6px;
.label {
display: inline-block;
width: 250px;
}
.result {
display: inline-block;
width: 250px;
text-align: right;
font-weight: bold;
&.passed {
color: #5a5;
}
&.failed {
color: #a55;
}
}
.info {
margin: 4px 0 12px 12px;
font-size: 0.7em;
color: #aaa;
width: 460px;
line-height: 1.2em;
}
}
}
#bottombar {
font-size: 13px;
}
}

View File

@@ -1,14 +0,0 @@
#notify {
position: fixed;
left: 50%;
top: 3px;
width: 200px;
margin-left: -100px;
z-index: 100;
padding: 2px 6px 2px 6px;
color: #fff;
background-color: rgba(0, 0, 0, 0.2);
border-radius: 4px;
text-align: center;
}

View File

@@ -1,174 +0,0 @@
#pv-txt-text {
max-width: 960px;
text-align: left;
background-color: #fff;
margin: 0 auto;
padding: 8px;
overflow: auto;
box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.3);
&.highlighted {
// word-break: break-all;
code {
font-family: @font-family-mono;
font-size: 16px;
line-height: 1.2em;
}
a, a:active, a:visited {
color: #2080FF;
text-decoration: none;
cursor: pointer;
&:hover {
color: #68A9FF;
}
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #aaa;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.builtin {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
color: #a67f59;
background: hsla(0,0%,100%,.5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function {
color: #DD4A68;
}
.token.regex,
.token.important {
color: #e90;
}
.token.important {
font-weight: bold;
}
.token.entity {
cursor: help;
}
// pre.line-numbers {
// position: relative;
// padding-left: 3.8em;
// counter-reset: linenumber;
// }
// pre.line-numbers > code {
// position: relative;
// }
// .line-numbers .line-numbers-rows {
// position: absolute;
// pointer-events: none;
// top: 0;
// font-size: 100%;
// left: -3.8em;
// width: 3em; /* works for line-numbers below 1000 lines */
// letter-spacing: -1px;
// border-right: 1px solid #999;
// -webkit-user-select: none;
// -moz-user-select: none;
// -ms-user-select: none;
// user-select: none;
// }
// .line-numbers-rows > span {
// pointer-events: none;
// display: block;
// counter-increment: linenumber;
// }
// .line-numbers-rows > span:before {
// content: counter(linenumber);
// color: #999;
// display: block;
// padding-right: 0.8em;
// text-align: right;
// }
// .token.tab:not(:empty):before,
// .token.cr:before,
// .token.lf:before {
// color: hsl(24, 20%, 85%);
// }
// .token.tab:not(:empty):before {
// content: '▸';
// }
// .token.cr:before {
// content: '␍';
// }
// .token.lf:before {
// // content: '␊';
// content: '¶';
// }
// .token a {
// color: inherit;
// }
}
&.markdown {
font-size: 16px;
padding: 8px 24px;
a, a:active, a:visited {
color: #2080FF;
text-decoration: none;
cursor: pointer;
&:hover {
color: #68A9FF;
}
}
pre, code {
font-family: @font-family-mono;
}
code {
color: #008200;
}
}
}

View File

@@ -1,16 +0,0 @@
#qrcode {
display: none;
position: fixed;
right: 16px;
bottom: 50px;
z-index: 10;
background-color: @col-widget-back;
border: @border-widget;
padding: 8px;
canvas {
display: block;
}
}

View File

@@ -1,56 +0,0 @@
@media only screen and (max-width: 700px) {
#topbar {
.crumb {
display: none;
}
.current {
display: block;
}
}
#view.view-details {
.header .label, .item .label {
margin-right: 80px !important;
}
.header .date, .item .date {
display: none;
}
}
#view.view-icons {
padding: 0;
}
#bottombar {
.center {
display: none;
}
}
}
@media only screen and (max-width: 500px) {
body {
margin: 8px;
}
#tree {
display: none !important;
}
}
@media print {
a[href]:after {
content: "";
}
#topbar {
position: static;
margin-bottom: 2em;
.view, #download {
display: none;
}
}
#bottombar {
position: static;
margin-top: 2em;
}
#tree, #sidebar {
display: none !important;
}
}

View File

@@ -1,125 +0,0 @@
#sidebar {
position: fixed;
right: -220px;
width: 200px;
top: 31px;
height: 100%;
z-index: 3;
overflow: auto;
padding: 8px;
background-color: @col-widget-back;
border-left: @border-widget;
}
#settings {
.block {
display: block;
margin: 12px 0;
}
a, a:active, a:visited, span.element {
color: @col;
cursor: pointer;
text-decoration: none;
opacity: 0.7;
.transition(all 0.2s ease-in-out);
display: block;
height: 30px;
line-height: 30px;
padding: 0 10px;
&:hover, &.hover {
opacity: 1.0;
background: @col-widget-back-highlight;
}
}
.current {
a, span.element {
opacity: 1.0;
background: @col-widget-back-highlight;
}
}
img {
position: relative;
top: -2px;
width: 16px;
height: 16px;
}
.view {
display: inline-block;
margin: 0 4px 0 0;
}
.select {
background-color: @col-widget-back-highlight;
width: 175px;
overflow: hidden;
}
input, select {
-moz-appearance: none;
-ms-appearance: none;
-webkit-appearance: none;
font-family: @font-family;
font-size: 13px;
font-weight: @font-weight;
color: @col;
background: @col-widget-back;
width: 100%;
height: 30px;
line-height: 30px;
border: 0 solid #000;
outline: none;
cursor: pointer;
}
select {
width: 200px;
padding: 0 4px;
}
input[type='range'] {
border-radius: 2px;
width: 64px;
margin: 0 0 4px 12px;
padding: 0 2px;
vertical-align: middle;
}
.range-track() {
-moz-appearance: none;
-ms-appearance: none;
-webkit-appearance: none;
border-width: 0;
border-radius: 2px;
background: @col-range-back;
height: 2px;
}
.range-thumb() {
-moz-appearance: none;
-ms-appearance: none;
-webkit-appearance: none;
border-width: 0;
border-radius: 2px;
background: @col-range-thumb;
width: 12px;
height: 12px;
}
input[type='range']::-webkit-slider-runnable-track { .range-track; }
input[type='range']::-moz-range-track { .range-track; }
input[type='range']::-ms-track { .range-track; }
input[type='range']::-ms-fill-lower { .range-track; }
input[type='range']::-ms-fill-upper { .range-track; }
input[type='range']::-webkit-slider-thumb { .range-thumb; margin-top: -5px; }
input[type='range']::-moz-range-thumb { .range-thumb; }
input[type='range']::-ms-thumb { .range-thumb; }
}

View File

@@ -1,87 +0,0 @@
#topbar {
position: fixed;
z-index: 5;
width: 100%;
min-height: 30px;
left: 0;
top: 0;
background-color: @col-widget-back;
border-bottom: @border-widget;
}
.topbar-highlight {
background-color: @col-widget-back-highlight;
opacity: 1.0;
}
.topbar-hover {
.topbar-highlight;
color: @col-hover;
}
.topbar-left {
float: left;
border-right: @border-widget-sep;
}
.topbar-right {
float: right;
border-left: @border-widget-sep;
}
#navbar {
list-style: none;
list-style-image: none;
margin: 0;
padding: 0;
a, a:active, a:visited, span.element {
color: @col;
cursor: pointer;
text-decoration: none;
opacity: 0.7;
.transition(all 0.2s ease-in-out);
display: block;
height: 30px;
line-height: 30px;
padding: 0 10px;
&:hover, &.hover {
.topbar-hover;
}
}
.current {
a, span.element {
.topbar-highlight;
}
}
img {
position: relative;
top: -2px;
width: 16px;
height: 16px;
}
img + span, img + input {
margin-left: 6px;
}
.crumb {
.topbar-left;
.hint {
margin-left: 8px;
font-style: italic;
color: #999;
}
img.hint {
opacity: 0.8;
width: 12px;
height: 12px;
}
}
.view {
.topbar-right;
}
}

View File

@@ -1,116 +0,0 @@
#tree {
display: none;
position: fixed;
left: 0;
top: 31px;
height: 100%;
z-index: 3;
overflow: auto;
padding: 8px;
background-color: @col-widget-back;
border-right: @border-widget;
.sp-scrollbar {
width: 6px;
background-color: @col-sb-back;
cursor: pointer;
.sp-thumb {
background-color: @col-sb-thumb;
}
&.active .sp-thumb {
background-color: @col-sb-thumb-active;
}
}
.indicator {
position: relative;
top: 2px;
display: inline-block;
width: 16px;
height: 22px;
float: left;
opacity: 0.7;
cursor: pointer;
img {
width: 12px;
height: 12px;
.transition(all 0.2s ease-in-out);
}
&.open {
img {
.transform(rotate(90deg));
}
}
&.unknown {
opacity: 0.3;
}
&.none {
opacity: 0;
cursor: inherit;
}
}
a, a:active, a.visited {
display: block;
height: 1.231em;
line-height: 1.231em;
margin-left: 14px;
padding: 4px 6px;
color: #555;
border: 1px solid rgba(0,0,0,0);
border-radius: 3px;
text-decoration: none;
opacity: 0.7;
&:hover, &.hover {
color: @col-hover;
background-color: @col-widget-back-hover;
opacity: 1;
}
}
.icon {
position: relative;
top: -2px;
margin-right: 6px;
img {
width: 16px;
height: 16px;
}
}
.hint {
margin-left: 6px;
font-size: 0.9em;
color: #ccc;
}
.content {
list-style: none;
margin: 0;
padding: 0 0 0 24px;
}
.summary {
margin: 0 0 0 24px;
color: #999;
font-style: italic;
}
.current {
> a, > a:active, > a:visited {
background-color: @col-widget-back-sel;
border-color: @col-widget-sep;
opacity: 1;
}
}
.error {
> a, > a:active, > a:visited {
color: #999;
&:hover, &.hover {
color: @col-hover;
}
}
.hint {
color: #c55;
}
}
}

View File

@@ -1,122 +0,0 @@
.view-details-sized(@size) {
li {
&.item {
a, a:active, a:visited {
height: @size + 6px;
}
.label, .date, .size {
padding: ((@size - 16px)/2) 8px;
}
}
.icon.square {
width: @size;
img {
width: @size;
height: @size;
}
}
.label {
margin: 0 230px 0 (@size + 16px);
}
}
}
#view.view-details {
li {
&.header {
display: list-item;
}
&.item {
a, a:active, a:visited {
border-bottom: 1px solid @item-border-col-sep;
&:hover, &.hover {
border-color: @item-border-col-hover;
}
}
// needs to be here, to not conflict with header fields
.icon {
padding: 8px;
}
}
.icon.square {
display: inline-block;
position: absolute;
left: 0;
top: -4px;
}
.date {
position: absolute;
right: 100px;
top: 0;
}
.size {
position: absolute;
right: 0;
top: 0;
}
.selector {
margin-top: -1px;
}
}
.view-details-sized(@icon-size);
&.size-16 {
.view-details-sized(16px)
}
&.size-24 {
.view-details-sized(24px)
}
&.size-32 {
.view-details-sized(32px)
}
&.size-48 {
.view-details-sized(48px)
}
&.size-64 {
.view-details-sized(64px)
}
&.size-96 {
.view-details-sized(96px)
}
&.size-128 {
.view-details-sized(128px)
}
&.size-192 {
.view-details-sized(192px)
}
&.size-256 {
.view-details-sized(256px)
}
&.size-384 {
.view-details-sized(384px)
}
}

View File

@@ -1,113 +0,0 @@
.view-grid-sized(@size) {
li {
&.item {
a, a:active, a:visited {
width: @size + 182px;
height: @size + 6px;
}
.label, .date, .size {
padding: ((@size - 16px)/2) 8px;
}
}
.icon.square {
width: @size;
img {
width: @size;
height: @size;
}
}
.label {
margin: 0 0 0 (@size + 8px);
}
}
}
#view.view-grid {
li {
&.item {
float: left;
margin: 2px;
a, a:active, a:visited {
border: 1px solid rgba(0,0,0,0);
&:hover, &.hover {
border-color: @item-border-col-hover;
}
}
// needs to be here, to not conflict with header fields
.icon {
padding: 8px;
}
}
.icon.square {
display: inline-block;
position: absolute;
left: 0;
top: -4px;
}
.label {
display: block;
}
.date, .size {
display: none;
}
}
.view-grid-sized(@icon-size);
&.size-16 {
.view-grid-sized(16px)
}
&.size-24 {
.view-grid-sized(24px)
}
&.size-32 {
.view-grid-sized(32px)
}
&.size-48 {
.view-grid-sized(48px)
}
&.size-64 {
.view-grid-sized(64px)
}
&.size-96 {
.view-grid-sized(96px)
}
&.size-128 {
.view-grid-sized(128px)
}
&.size-192 {
.view-grid-sized(192px)
}
&.size-256 {
.view-grid-sized(256px)
}
&.size-384 {
.view-grid-sized(384px)
}
}

View File

@@ -1,115 +0,0 @@
.view-icons-sized(@size) {
li {
&.item {
a, a:active, a:visited {
width: @size * 2;
height: @size + 72px;
}
}
.icon.rational {
height: @size;
img {
width: @size;
height: @size;
}
img.thumb {
width: auto;
height: auto;
max-width: @size * 2;
max-height: @size;
}
}
}
}
#view.view-icons {
li {
text-align: center;
&.item {
float: left;
margin: 8px;
a, a:active, a:visited {
padding: 8px;
min-width: 96px;
border: 1px solid rgba(0,0,0,0);
&:hover, &.hover {
border-color: @item-border-col-hover;
}
}
}
.icon.rational {
display: block;
margin-bottom: 6px;
}
.label {
text-align: center;
word-wrap: break-word;
white-space: normal;
}
.date, .size {
display: none;
}
}
.empty, .no-match {
margin: 0 120px;
padding: 16px;
height: 120px;
}
.view-icons-sized(@icon-size);
&.size-16 {
.view-icons-sized(16px);
}
&.size-24 {
.view-icons-sized(24px);
}
&.size-32 {
.view-icons-sized(32px);
}
&.size-48 {
.view-icons-sized(48px);
}
&.size-64 {
.view-icons-sized(64px);
}
&.size-96 {
.view-icons-sized(96px);
}
&.size-128 {
.view-icons-sized(128px);
}
&.size-192 {
.view-icons-sized(192px);
}
&.size-256 {
.view-icons-sized(256px);
}
&.size-384 {
.view-icons-sized(384px);
}
}

View File

@@ -1,197 +0,0 @@
@item-border-col-sep: @col-border;
@item-background-col-hover: rgba(0,0,0,0.02);
@item-border-col-hover: @col-border;
@item-background-col-sel: rgba(0,0,0,0.02);
@item-border-col-sel: @col-border-strong;
@icon-size: 48px;
#selection-rect {
display: none;
position: absolute;
left: 0;
top: 0;
z-index: 2;
border: 1px dashed @col-border-strong;
background-color: rgba(0,0,0,0.01);
}
#view {
display: none;
margin: 0 auto;
a, a:active, a:visited {
color: #333;
cursor: pointer;
text-decoration: none;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
li {
position: relative;
white-space: nowrap;
&.header {
display: none;
font-size: 13px;
a, a:active, a:visited {
padding: 6px 6px 18px 6px;
opacity: 0.4;
.transition(all 0.2s ease-in-out);
img {
display: none;
position: relative;
top: -2px;
width: 12px;
height: 12px;
padding: 0 8px;
}
&:hover {
color: #555;
opacity: 0.9;
}
&.ascending img.ascending {
display: inline;
}
&.descending img.descending {
display: inline;
}
}
}
&.item {
font-size: 15px;
a, a:active, a:visited {
display: block;
overflow: hidden;
&:hover, &.hover {
color: @col-hover;
background-color: @item-background-col-hover;
border-color: @item-border-col-hover;
}
&:hover {
.selector {
display: block;
}
}
}
&.selected:not(.selecting), &.selecting:not(.selected) {
a, a:active, a:visited {
background-color: @item-background-col-sel;
border-color: @item-border-col-sel;
&:hover, &.hover {
background-color: @item-background-col-sel;
border-color: @item-border-col-sel;
}
}
.selector {
display: block;
// border-color: @col-border-stronger;
img {
display: block;
}
}
}
}
&.folder-parent {
.date, .size {
display: none;
}
}
.icon {
display: none;
text-align: center;
img {
vertical-align: top;
}
.thumb {
box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
&.rational {
.thumb {
padding: 2px;
border-radius: 3px;
}
}
}
.label {
display: block;
overflow: hidden;
text-align: left;
text-overflow: ellipsis;
}
.date {
text-align: right;
width: 130px;
}
.size {
text-align: right;
width: 80px;
}
.selector {
display: none;
position: absolute;
left: 0;
top: 0;
width: 18px;
height: 18px;
background-color: #fff;
border: 1px solid @col-border-strong;
cursor: pointer;
.transition(all 0.2s ease-in-out);
&:hover {
border-color: @col-border-stronger;
}
img {
display: none;
width: 100%;
height: 100%;
}
}
}
.empty, .no-match {
margin: 50px 0;
text-align: center;
color: #ddd;
font-size: 5em;
font-weight: bold;
}
.no-match {
display: none;
}
}

View File

@@ -1,172 +0,0 @@
/* ==========================================================================
Helper classes
========================================================================== */
/*
* Image replacement
*/
.ir {
background-color: transparent;
border: 0;
overflow: hidden;
/* IE 6/7 fallback */
*text-indent: -9999px;
}
.ir:before {
content: "";
display: block;
width: 0;
height: 150%;
}
/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
.hidden {
display: none !important;
visibility: hidden;
}
/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/*
* Extends the .visuallyhidden class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
/*
* Hide visually and from screenreaders, but maintain layout
*/
.invisible {
visibility: hidden;
}
/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* `contenteditable` attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.clearfix:after {
clear: both;
}
/*
* For IE 6/7 only
* Include this rule to trigger hasLayout and contain floats.
*/
.clearfix {
*zoom: 1;
}
/* ==========================================================================
Print styles.
Inlined to avoid required HTTP connection: h5bp.com/r
========================================================================== */
@media print {
* {
background: transparent !important;
color: #000 !important; /* Black prints faster: h5bp.com/s */
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
/*
* Don't show links for images, or javascript/internal links
*/
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group; /* h5bp.com/t */
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
@page {
margin: 0.5cm;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}

View File

@@ -1,87 +0,0 @@
/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */
html,
button,
input,
select,
textarea {
color: #222;
}
body {
font-size: 1em;
line-height: 1.4;
}
/*
* Remove text-shadow in selection highlight: h5bp.com/i
* These selection rule sets have to be separate.
* Customize the background color to match your design.
*/
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
/*
* A better looking default horizontal rule
*/
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
/*
* Remove the gap between images, videos, audio and canvas and the bottom of
* their containers: h5bp.com/i/440
*/
audio,
canvas,
img,
video {
vertical-align: middle;
}
/*
* Remove default fieldset styles.
*/
fieldset {
border: 0;
margin: 0;
padding: 0;
}
/*
* Allow only vertical resizing of textareas.
*/
textarea {
resize: vertical;
}
/* ==========================================================================
Author's custom styles
========================================================================== */

View File

@@ -1,527 +0,0 @@
/*! normalize.css v1.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
/**
* Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
*/
audio,
canvas,
video {
display: inline-block;
*display: inline;
*zoom: 1;
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
* Known issue: no IE 6 support.
*/
[hidden] {
display: none;
}
/* ==========================================================================
Base
========================================================================== */
/**
* 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
* `em` units.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-size: 100%; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/**
* Address `font-family` inconsistency between `textarea` and other form
* elements.
*/
html,
button,
input,
select,
textarea {
font-family: sans-serif;
}
/**
* Address margins handled incorrectly in IE 6/7.
*/
body {
margin: 0;
}
/* ==========================================================================
Links
========================================================================== */
/**
* Address `outline` inconsistency between Chrome and other browsers.
*/
a:focus {
outline: thin dotted;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* ==========================================================================
Typography
========================================================================== */
/**
* Address font sizes and margins set differently in IE 6/7.
* Address font sizes within `section` and `article` in Firefox 4+, Safari 5,
* and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
h2 {
font-size: 1.5em;
margin: 0.83em 0;
}
h3 {
font-size: 1.17em;
margin: 1em 0;
}
h4 {
font-size: 1em;
margin: 1.33em 0;
}
h5 {
font-size: 0.83em;
margin: 1.67em 0;
}
h6 {
font-size: 0.67em;
margin: 2.33em 0;
}
/**
* Address styling not present in IE 7/8/9, Safari 5, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
*/
b,
strong {
font-weight: bold;
}
blockquote {
margin: 1em 40px;
}
/**
* Address styling not present in Safari 5 and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address differences between Firefox and other browsers.
* Known issue: no IE 6/7 normalization.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/**
* Address styling not present in IE 6/7/8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Address margins set differently in IE 6/7.
*/
p,
pre {
margin: 1em 0;
}
/**
* Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
*/
code,
kbd,
pre,
samp {
font-family: monospace, serif;
_font-family: 'courier new', monospace;
font-size: 1em;
}
/**
* Improve readability of pre-formatted text in all browsers.
*/
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
/**
* Address CSS quotes not supported in IE 6/7.
*/
q {
quotes: none;
}
/**
* Address `quotes` property not supported in Safari 4.
*/
q:before,
q:after {
content: '';
content: none;
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* ==========================================================================
Lists
========================================================================== */
/**
* Address margins set differently in IE 6/7.
*/
dl,
menu,
ol,
ul {
margin: 1em 0;
}
dd {
margin: 0 0 0 40px;
}
/**
* Address paddings set differently in IE 6/7.
*/
menu,
ol,
ul {
padding: 0 0 0 40px;
}
/**
* Correct list images handled incorrectly in IE 7.
*/
nav ul,
nav ol {
list-style: none;
list-style-image: none;
}
/* ==========================================================================
Embedded content
========================================================================== */
/**
* 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
* 2. Improve image quality when scaled in IE 7.
*/
img {
border: 0; /* 1 */
-ms-interpolation-mode: bicubic; /* 2 */
}
/**
* Correct overflow displayed oddly in IE 9.
*/
svg:not(:root) {
overflow: hidden;
}
/* ==========================================================================
Figures
========================================================================== */
/**
* Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
*/
figure {
margin: 0;
}
/* ==========================================================================
Forms
========================================================================== */
/**
* Correct margin displayed oddly in IE 6/7.
*/
form {
margin: 0;
}
/**
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct color not being inherited in IE 6/7/8/9.
* 2. Correct text not wrapping in Firefox 3.
* 3. Correct alignment displayed oddly in IE 6/7.
*/
legend {
border: 0; /* 1 */
padding: 0;
white-space: normal; /* 2 */
*margin-left: -7px; /* 3 */
}
/**
* 1. Correct font size not being inherited in all browsers.
* 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
* and Chrome.
* 3. Improve appearance and consistency in all browsers.
*/
button,
input,
select,
textarea {
font-size: 100%; /* 1 */
margin: 0; /* 2 */
vertical-align: baseline; /* 3 */
*vertical-align: middle; /* 3 */
}
/**
* Address Firefox 3+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
button,
input {
line-height: normal;
}
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
* Correct `select` style inheritance in Firefox 4+ and Opera.
*/
button,
select {
text-transform: none;
}
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
* 4. Remove inner spacing in IE 7 without affecting normal text inputs.
* Known issue: inner spacing remains in IE 6.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
*overflow: visible; /* 4 */
}
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* 1. Address box sizing set to content-box in IE 8/9.
* 2. Remove excess padding in IE 8/9.
* 3. Remove excess padding in IE 7.
* Known issue: excess padding remains in IE 6.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
*height: 13px; /* 3 */
*width: 13px; /* 3 */
}
/**
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/**
* Remove inner padding and search cancel button in Safari 5 and Chrome
* on OS X.
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Remove inner padding and border in Firefox 3+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* 1. Remove default vertical scrollbar in IE 6/7/8/9.
* 2. Improve readability and alignment in all browsers.
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
/* ==========================================================================
Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}

View File

@@ -1,33 +0,0 @@
@import "lib/h5bp-normalize";
@import "lib/h5bp-main-header";
@import "inc/fonts";
@import "inc/general";
@import "inc/topbar";
@import "inc/bottombar";
@import "inc/sidebar";
@import "inc/download";
@import "inc/filter";
@import "inc/tree";
@import "inc/qrcode";
@import "inc/preview";
@import "inc/preview-aud";
@import "inc/preview-img";
@import "inc/preview-txt";
@import "inc/preview-vid";
@import "inc/notify";
@import "inc/content";
@import "inc/view";
@import "inc/view-details";
@import "inc/view-icons";
@import "inc/view-grid";
// @import "inc/context-menu";
@import "inc/fallback";
@import "inc/responsive";
@import "inc/h5ai-info";
@import "lib/h5bp-main-footer";

View File

@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-180,-626)">
<path d="m182 631v1c-0.00012 0.0104-0.00046 0.0208 0 0.0313 0.0112 0.25495 0.12858 0.50987 0.3125 0.6875l5.2188 5.2812 5.1875-5.2812c0.19-0.19 0.28-0.45 0.28-0.72v-1h-1c-0.26529 0-0.53058 0.0931-0.71875 0.28125l-3.75 3.8125-3.7812-3.8125c-0.19463-0.21074-0.46925-0.30316-0.75-0.28125h-1z" fill="#555"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 457 B

View File

@@ -1,7 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-320,-626)">
<g transform="translate(200,108)">
<path d="m125.03 520h1c0.0104-0.00012 0.0208-0.00046 0.0313 0 0.25495 0.0112 0.50987 0.12858 0.6875 0.3125l5.2812 5.2188-5.2812 5.1875c-0.19 0.19-0.45 0.28-0.72 0.28h-1v-1c0-0.26529 0.0931-0.53058 0.28125-0.71875l3.8125-3.75-3.8125-3.7812c-0.21074-0.19463-0.30316-0.46925-0.28125-0.75v-1z" fill="#555"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 508 B

View File

@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-200,-626)">
<path d="m202 637v-1c-0.00012-0.0104-0.00046-0.0208 0-0.0313 0.0112-0.25495 0.12858-0.50987 0.3125-0.6875l5.2188-5.2812 5.1875 5.2812c0.18819 0.18821 0.28125 0.45351 0.28125 0.7188v1h-1c-0.26529 0-0.53058-0.0931-0.71875-0.28125l-3.75-3.8125-3.7812 3.8125c-0.19463 0.21074-0.46925 0.30316-0.75 0.28125h-1z" fill="#555"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 474 B

View File

@@ -1,9 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-80,-648)">
<path d="m84.406 657a0.50005 0.50005 0 0 0-0.3125 0.21875l-1 1.5a0.50005 0.50005 0 1 0 0.8125 0.5625l1-1.5a0.50005 0.50005 0 0 0-0.5-0.78zm7 0a0.50005 0.50005 0 0 0-0.3125 0.78125l1 1.5a0.50005 0.50005 0 1 0 0.8125-0.5625l-1-1.5a0.50005 0.50005 0 0 0-0.5-0.22z" fill="#555"/>
<g transform="translate(-80,110)">
<path d="m167 539v5.5625l-1.2812-1.2812c-0.19-0.19-0.45-0.28-0.72-0.28h-1v1c0.00001 0.2653 0.0931 0.53058 0.28125 0.71875l3 3 0.28125 0.28125h0.875l0.28125-0.28125 3-3c0.19-0.19 0.28-0.45 0.28-0.72v-1h-1c-0.2653 0.00001-0.53059 0.0931-0.71875 0.28125l-1.28 1.28v-5.56z" fill="#555"/>
<path d="m163 549v4h10v-4zm3.3438 1.4375c0.0208-0.001 0.0417-0.001 0.0625 0 0.29096-0.0556 0.59898 0.20383 0.59375 0.5v0.0625h2v-0.0625c-0.004-0.26416 0.23582-0.50712 0.5-0.50712s0.50373 0.24296 0.5 0.50712v0.06c0 0.54535-0.45465 1-1 1h-2c-0.54535 0-1-0.45465-1-1v-0.0625c-0.0108-0.21706 0.13723-0.43234 0.34375-0.5z" fill="#555"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,4 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="96" width="96" viewBox="0 0 96 96" version="1.1">
<path d="M6 6 6 90 90 90 90 24 72 6zm6 6 57.6 0L84 26.6 84 84 12 84z" fill="#555"/>
<rect width="12" height="24" x="42" y="12" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 288 B

View File

@@ -1,8 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="96" width="96" viewBox="0 0 96 96" version="1.1">
<path d="M12 6 12 90 84 90 84 24 66 6zm6 6 45.6 0L78 26.6 78 84 18 84z" fill="#555"/>
<g transform="translate(2.5793231,-3.2660688)">
<path transform="matrix(1.353211,0,0,0.99662165,-14.954127,-1.1081069)" d="m48 65.8c0 4.2-3.3 7.5-7.4 7.5-4.1 0-7.4-3.4-7.4-7.5 0-4.2 3.3-7.5 7.4-7.5 4.1 0 7.4 3.4 7.4 7.5z" fill="#555"/>
<rect y="35" x="44" height="30" width="6" fill="#555"/>
<rect transform="matrix(0.69076685,-0.72307756,0.72307756,0.69076685,0,0)" y="55.9" x="5.2" height="17.6" width="6" fill="#555"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 675 B

View File

@@ -1,4 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="96" width="96" viewBox="0 0 96 96" version="1.1">
<path d="M6 6 6 90 90 90 90 24 72 6zm6 6 57.6 0L84 26.6 84 84 12 84z" fill="#555"/>
<rect width="12" height="12" x="42" y="42" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

View File

@@ -1,3 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="96" width="96" viewBox="0 0 96 96" version="1.1">
<path d="M12 6 12 90 84 90 84 24 66 6zm6 6 45.6 0L78 26.6 78 84 18 84z" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 231 B

View File

@@ -1,3 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="96" width="96" viewBox="0 0 96 96" version="1.1">
<path d="m0 18 0 72 96 0 0-72-30 0-12-12-42 0zm12 12 54 0 18 18 0 36-72 0zm66 54 0-30-18 0 0-18-42 0 0 48" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -1,8 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 96 96" version="1.1">
<g transform="translate(-321.00015,-587)">
<g transform="matrix(4.836272,0,0,4.836272,-1221.151,-2629.537)" fill="#555">
<path d="m325 673 0 2 6.5 0c0.8 0 1.5 0.7 1.5 1.5 0 0.8-0.7 1.5-1.5 1.5l-0.5 0 0 2 0.5 0c1.9 0 3.5-1.6 3.5-3.5 0-1.9-1.6-3.5-3.5-3.5l-6.5 0z"/>
<path d="m328 670 0 1c0 0.3-0.1 0.5-0.3 0.7l-2.3 2.3 2.3 2.3c0.2 0.2 0.3 0.5 0.3 0.7l0 1-1 0c-0.3 0-0.6-0.1-0.7-0.3l-3.7-3.7 3.7-3.7c0.2-0.2 0.4-0.3 0.8-0.3z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

View File

@@ -1,3 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="96" width="96" viewBox="0 0 96 96" version="1.1">
<path d="m0 18 0 72 96 0 0-72-30 0-12-12-42 0z" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 207 B

View File

@@ -1,4 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="96" width="96" viewBox="0 0 96 96" version="1.1">
<path d="m -24,53.237289 a 15,15 0 1 1 -30,0 15,15 0 1 1 30,0 z" transform="matrix(0.4,0,0,0.4,81.6,14.705084)" fill="#555"/>
<path d="M6 12 6 84 90 84 90 30 72 12zm6 6 57.6 0L84 32.6 84 78 12 78zM30 36 46 55.2 60 48 78 72 18 72zM-24 53.2a15 15 0 1 1-30 0 15 15 0 1 1 30 0z" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 436 B

View File

@@ -1,6 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="96" width="96" viewBox="0 0 96 96" version="1.1">
<path d="M12 6 12 90 84 90 84 24 66 6zm6 6 45.6 0L78 26.6 78 84 18 84z" fill="#555"/>
<rect width="42" height="6" x="24" y="24" fill="#555"/>
<rect width="36" height="6" x="24" y="42" fill="#555"/>
<rect width="48" height="6" x="24" y="60" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 405 B

View File

@@ -1,17 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="96" width="96" viewBox="0 0 96 96" version="1.1">
<path d="m -24,53.237289 a 15,15 0 1 1 -30,0 15,15 0 1 1 30,0 z" transform="matrix(0.4,0,0,0.4,75.6,14.705084)" fill="#555"/>
<path d="M6 12 6 84 90 84 90 30 72 12zm6 6 57.6 0L84 32.6 84 78 12 78zM35.4 42 46.6 58 56.4 52 69 72 27 72zM-24 53.2a15 15 0 1 1-30 0 15 15 0 1 1 30 0z" fill="#555"/>
<rect width="6" height="60" x="18" y="18" fill="#555"/>
<rect width="6" height="6" x="12" y="26.7" fill="#555"/>
<rect width="6" height="6" x="12" y="39" fill="#555"/>
<rect width="6" height="6" x="12" y="51" fill="#555"/>
<rect width="6" height="6" x="12" y="63" fill="#555"/>
<rect width="6" height="6" x="12" y="75" fill="#555"/>
<rect width="6" height="60" x="72" y="18" fill="#555"/>
<rect width="6" height="6" x="78" y="26.7" fill="#555"/>
<rect width="6" height="6" x="78" y="39" fill="#555"/>
<rect width="6" height="6" x="78" y="51" fill="#555"/>
<rect width="6" height="6" x="78" y="63" fill="#555"/>
<rect width="6" height="6" x="78" y="75" fill="#555"/>
<rect width="6" height="6" x="12" y="15" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 800 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-140 -645.97)">
<path d="m146.5 647c-3 0-5.5 2.5-5.5 5.5 0 3 2.5 5.5 5.5 5.5s5.5-2.5 5.5-5.5c0-3-2.5-5.5-5.5-5.5zm0 2c1.9 0 3.5 1.6 3.5 3.5s-1.6 3.5-3.5 3.5c-1.9 0-3.5-1.6-3.5-3.5 0-1.9 1.6-3.5 3.5-3.5zM149.8 655a1 1 0 0 0-0.5 1.7l4 4a1 1 0 1 0 1.4-1.4l-4-4a1 1 0 0 0-0.9-0.3z" fill="#555"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 433 B

View File

@@ -1,3 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<path d="M2 1 0 3 0 15 16 15C16 10.8 16 7.2 16 3L11 3 9 1zM1 5 16 5 16 7 2 7 1.5 14 1 14z" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 250 B

View File

@@ -1,3 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<path d="M0 3 0 15 16 15 16 3 11 3 9 1 2 1zm2 2 9 0 3 3 0 6-12 0zm11 9 0-5-3 0 0-3-7 0 0 8" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 251 B

View File

@@ -1,3 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<path d="M0 3 0 15 16 15 16 3 11 3 9 1 2 1z" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 204 B

View File

@@ -1,5 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-562,-176)">
<path d="m570 177-8 6 2 0 0 7 3 0 1 0 1 0 1 0 6 0 0-7 2 0-3-2.2 0-2.7-2 0 0 1.3z" fill="#555"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 289 B

View File

@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-241 -627)">
<path d="m253.9 629a1 1 0 0 0-0.1 0 1 1 0 0 0-0.8 1v1.7c-0.4-0.6-0.8-1.1-1.4-1.5-1.2-0.9-2.5-1.3-3.9-1.2-0.2 0-0.4 0-0.6 0.1-1.5 0.2-3 1-4 2.3-2 2.6-1.4 6.4 1.2 8.4s6.4 1.4 8.4-1.2a1 1 0 0 0 0.2-0.6 1 1 0 0 0 0-0.2v-0.8h-0.8-0.1a1 1 0 0 0-0.1 0 1 1 0 0 0-0.8 0.4c-1.3 1.8-3.8 2.1-5.6 0.8-1.8-1.3-2.1-3.8-0.8-5.6 1.3-1.8 3.8-2.1 5.6-0.8 0.4 0.3 0.8 0.7 1 1.2h-1.4a1 1 0 0 0-1 1 1 1 0 0 0 0 0.2v0.8h0.8 0.2 4 1v-1-4a1 1 0 0 0 0-0.2v-0.8h-0.8a1 1 0 0 0-0.30z" fill="#555"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 625 B

View File

@@ -1,5 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="12" width="12" viewBox="0 0 12 12" version="1.1">
<g transform="matrix(0.68005728,0,0,0.70728284,-313.86652,-213.11037)">
<path d="m479.17511 316.86104 0-9.89704-4.41139-4.24158-13.23419-0.00001 0.00001 14.13863 2.94093-0.00001-0.00001-11.3109 7.35234 0.00001 0 4.24159 4.41139 0-0.00001 7.0693" fill="#555"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -1,7 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-60,-518)">
<g transform="translate(19,-242)">
<path d="m45 764h1c0.01037-0.00012 0.02079-0.00046 0.03125 0 0.25495 0.0112 0.50987 0.12858 0.6875 0.3125l2.281 2.28 2.312-2.28c0.266-0.23 0.447-0.3 0.688-0.31h1v1c0 0.28647-0.03434 0.55065-0.25 0.75l-2.2812 2.2812 2.25 2.25c0.188 0.19 0.281 0.45 0.281 0.72v1h-1c-0.2653-0.00001-0.53059-0.0931-0.71875-0.28125l-2.281-2.28-2.281 2.28c-0.188 0.19-0.454 0.28-0.719 0.28h-1v-1c-0.000003-0.26529 0.09306-0.53058 0.28125-0.71875l2.2812-2.25-2.281-2.28c-0.21-0.19-0.303-0.47-0.281-0.75v-1z" fill="#ccc"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 701 B

View File

@@ -1,13 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-40.984 -646.99)" fill="#ccc">
<path d="m41.8 657a1 1 0 0 0-0.8 1v4a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-3a1 1 0 0 0-1.2-1zM46.9 656a1 1 0 0 0-0.6 0.3l-5 5a1 1 0 1 0 1.4 1.4l5-5a1 1 0 0 0-0.8-1.7z"/>
<rect height="1" width="1" y="662" x="41"/>
<path d="m51.9 647a1 1 0 1 0 0.1 2h3v3a1 1 0 1 0 2 0v-4a1 1 0 0 0-1-1h-4a1 1 0 0 0-0.1 0z"/>
<rect height="1" width="1" y="647" x="56"/>
<path d="m55.9 647a1 1 0 0 0-0.6 0.3l-5 5a1 1 0 1 0 1.4 1.4l5-5a1 1 0 0 0-0.8-1.7z"/>
<rect height="1" width="1" y="657" x="41"/>
<rect height="1" width="1" y="662" x="46"/>
<rect height="1" width="1" y="652" x="56"/>
<rect height="1" width="1" y="647" x="51"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 813 B

View File

@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-120,-626)" fill="#ccc">
<path d="m125.03 628h1c0.0104-0.00012 0.0208-0.00046 0.0313 0 0.25495 0.0112 0.50987 0.12858 0.6875 0.3125l5.2812 5.2188-5.2812 5.1875c-0.19 0.19-0.45 0.28-0.72 0.28h-1v-1c0-0.26529 0.0931-0.53058 0.28125-0.71875l3.8125-3.75-3.8125-3.7812c-0.21074-0.19463-0.30316-0.46925-0.28125-0.75v-1z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 458 B

View File

@@ -1,12 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-60.952 -646.98)" fill="#ccc">
<path d="m71.8 647a1 1 0 0 0-0.8 1v4a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-3a1 1 0 0 0-1.2-1zM75.9 647a1 1 0 0 0-0.6 0.3l-4 4a1 1 0 1 0 1.4 1.4l4-4a1 1 0 0 0-0.8-1.7z"/>
<rect height="1" width="1" y="652" x="71"/>
<path d="m61.9 653a1 1 0 0 0-0.9 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-0.1 0zm1.1 2h6v6h-6v-6z"/>
<path d="m61.9 655a1 1 0 1 0 0.1 2h8a1 1 0 1 0 0-2h-8a1 1 0 0 0-0.1 0z"/>
<rect height="1" width="1" y="652" x="76"/>
<rect height="1" width="1" y="647" x="71"/>
<rect height="1" width="1" y="662" x="70"/>
<rect height="1" width="1" y="662" x="61"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 784 B

View File

@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-100,-626)" fill="#ccc">
<path d="m111 628h-1c-0.0104-0.00012-0.0208-0.00046-0.0313 0-0.25495 0.0112-0.50987 0.12858-0.6875 0.3125l-5.2812 5.2188 5.2812 5.1875c0.18816 0.18819 0.45346 0.28125 0.71875 0.28125h1v-1c0-0.26529-0.0931-0.53058-0.28125-0.71875l-3.8125-3.75 3.8125-3.7812c0.21074-0.19463 0.30316-0.46925 0.28125-0.75v-1z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 474 B

View File

@@ -1,9 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-80,-648)" fill="#ccc">
<path d="m84.406 657a0.50005 0.50005 0 0 0-0.3125 0.21875l-1 1.5a0.50005 0.50005 0 1 0 0.8125 0.5625l1-1.5a0.50005 0.50005 0 0 0-0.5-0.78zm7 0a0.50005 0.50005 0 0 0-0.3125 0.78125l1 1.5a0.50005 0.50005 0 1 0 0.8125-0.5625l-1-1.5a0.50005 0.50005 0 0 0-0.5-0.22z"/>
<g transform="translate(-80,110)">
<path d="m167 539v5.5625l-1.2812-1.2812c-0.19-0.19-0.45-0.28-0.72-0.28h-1v1c0.00001 0.2653 0.0931 0.53058 0.28125 0.71875l3 3 0.28125 0.28125h0.875l0.28125-0.28125 3-3c0.19-0.19 0.28-0.45 0.28-0.72v-1h-1c-0.2653 0.00001-0.53059 0.0931-0.71875 0.28125l-1.28 1.28v-5.56z"/>
<path d="m163 549v4h10v-4zm3.3438 1.4375c0.0208-0.001 0.0417-0.001 0.0625 0 0.29096-0.0556 0.59898 0.20383 0.59375 0.5v0.0625h2v-0.0625c-0.004-0.26416 0.23582-0.50712 0.5-0.50712s0.50373 0.24296 0.5 0.50712v0.06c0 0.54535-0.45465 1-1 1h-2c-0.54535 0-1-0.45465-1-1v-0.0625c-0.0108-0.21706 0.13723-0.43234 0.34375-0.5z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,3 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" height="16" width="16" viewBox="0 0 16 16">
<path d="M11.4 3.4 6.5 8.3 4.6 6.4l-2.1 2.1 3 3 1.1 1.1 1.1-1.1 6-6-2.1-2.1z" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 237 B

View File

@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-441 -401)">
<path d="m449 402c-0.22065 0-0.44081 0.0113-0.65625 0.0312l-0.40625 2.0938c-0.33446 0.0733-0.66305 0.17589-0.96875 0.3125l-1.5312-1.4688c-0.38863 0.23011-0.72695 0.51408-1.0625 0.8125l0.90625 1.9062c-0.22242 0.24899-0.42425 0.5225-0.59375 0.8125l-2.0938-0.28125c-0.17772 0.40877-0.30872 0.83637-0.40625 1.2812l1.8438 1c-0.0171 0.16809-0.0312 0.3274-0.0312 0.5s0.0142 0.33191 0.0312 0.5l-1.8438 1c0.0975 0.44488 0.22853 0.87248 0.40625 1.2812l2.0938-0.28125c0.1695 0.29 0.37133 0.56351 0.59375 0.8125l-0.90625 1.9062c0.33555 0.29842 0.67387 0.58239 1.0625 0.8125l1.5312-1.4688c0.3057 0.13661 0.63429 0.23916 0.96875 0.3125l0.40625 2.0938c0.21544 0.02 0.4356 0.0312 0.65625 0.0312s0.44081-0.0113 0.65625-0.0312l0.40625-2.0938c0.33446-0.0733 0.66305-0.17589 0.96875-0.3125l1.5312 1.4688c0.38863-0.23011 0.72695-0.51408 1.0625-0.8125l-0.90625-1.9062c0.22242-0.24899 0.42425-0.5225 0.59375-0.8125l2.0938 0.28125c0.17772-0.40877 0.30872-0.83637 0.40625-1.2812l-1.8438-1c0.0171-0.16809 0.0312-0.3274 0.0312-0.5s-0.0142-0.33191-0.0312-0.5l1.8438-1c-0.0975-0.44488-0.22853-0.87248-0.40625-1.2812l-2.0938 0.28125c-0.1695-0.29-0.37133-0.56351-0.59375-0.8125l0.90625-1.9062c-0.33555-0.29842-0.67387-0.58239-1.0625-0.8125l-1.5312 1.4688c-0.3057-0.13661-0.63429-0.23916-0.96875-0.3125l-0.40625-2.0938c-0.21544-0.02-0.4356-0.0312-0.65625-0.0312zm0 4c1.6568 0 3 1.3432 3 3s-1.3432 3-3 3-3-1.3432-3-3 1.3432-3 3-3z" fill="#555"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -1,13 +0,0 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-41.0002,-767)">
<path d="M42.8 776A1 1 0 0 0 42 777l0 4a1 1 0 0 0 1 1l4 0a1 1 0 1 0 0-2l-3 0 0-3a1 1 0 0 0-1.2-1zM47.4 775.5a1 1 0 0 0-0.6 0.3l-4.5 4.5a1 1 0 1 0 1.4 1.4l4.5-4.5A1 1 0 0 0 47.4 775.5z" fill="#555"/>
<rect height="1" width="1" x="42" y="781" fill="#555"/>
<path d="M50.9 768A1 1 0 1 0 51 770l3 0 0 3a1 1 0 1 0 2 0l0-4a1 1 0 0 0-1-1l-4 0a1 1 0 0 0-0.1 0z" fill="#555"/>
<rect height="1" width="1" x="55" y="768" fill="#555"/>
<path d="m54.8 768a1 1 0 0 0-0.5 0.3l-4.5 4.5a1 1 0 1 0 1.4 1.4l4.5-4.5A1 1 0 0 0 54.8 768z" fill="#555"/>
<rect height="1" width="1" x="42" y="776" fill="#555"/>
<rect height="1" width="1" x="47" y="781" fill="#555"/>
<rect height="1" width="1" x="55" y="773" fill="#555"/>
<rect height="1" width="1" x="50" y="768" fill="#555"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 984 B

View File

@@ -1,32 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
width="100"
height="100"
viewBox="-50 -50 100 100"
>
<defs>
<circle id="c" cx="0" cy="-35" r="10" style="fill:#ddd;stroke:#aaa;stroke-width:1" />
</defs>
<g>
<use xlink:href="#c" style="opacity:1;" />
<use xlink:href="#c" transform="rotate(45)" style="opacity:0.6;" />
<use xlink:href="#c" transform="rotate(90)" style="opacity:0.6;" />
<use xlink:href="#c" transform="rotate(135)" style="opacity:0.6;" />
<use xlink:href="#c" transform="rotate(180)" style="opacity:0.6;" />
<use xlink:href="#c" transform="rotate(225)" style="opacity:0.6;" />
<use xlink:href="#c" transform="rotate(270)" style="opacity:0.9;" />
<use xlink:href="#c" transform="rotate(315)" style="opacity:0.95;" />
<animateTransform
attributeName="transform" attributeType="XML"
type="rotate" begin="0s" dur="0.7s"
repeatCount="indefinite" calcMode="discrete"
values="0; 45; 90; 135; 180; 225; 270; 315"
keyTimes="0.0; 0.1; 0.2; 0.3; 0.4; 0.5; 0.6; 0.7"
/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,7 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 16 16" version="1.1">
<g transform="translate(-320,-626)">
<g transform="translate(200,108)">
<path d="m125.03 520h1c0.0104-0.00012 0.0208-0.00046 0.0313 0 0.25495 0.0112 0.50987 0.12858 0.6875 0.3125l5.2812 5.2188-5.2812 5.1875c-0.19 0.19-0.45 0.28-0.72 0.28h-1v-1c0-0.26529 0.0931-0.53058 0.28125-0.71875l3.8125-3.75-3.8125-3.7812c-0.21074-0.19463-0.30316-0.46925-0.28125-0.75v-1z" fill="#555"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 508 B

View File

@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="16" height="16" viewBox="0 0 16 16">
<rect x="3" y="3" width="10" height="2" fill="#555"/>
<rect x="3" y="7" width="10" height="2" fill="#555"/>
<rect x="3" y="11" width="10" height="2" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 273 B

View File

@@ -1,8 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="16" height="16" viewBox="0 0 16 16">
<rect x="3" y="3" width="4" height="2" fill="#555"/>
<rect x="3" y="7" width="4" height="2" fill="#555"/>
<rect x="3" y="11" width="4" height="2" fill="#555"/>
<rect x="9" y="3" width="4" height="2" fill="#555"/>
<rect x="9" y="7" width="4" height="2" fill="#555"/>
<rect x="9" y="11" width="4" height="2" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 436 B

View File

@@ -1,6 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="16" height="16" viewBox="0 0 16 16">
<rect x="3" y="3" width="4" height="4" fill="#555"/>
<rect x="9" y="3" width="4" height="4" fill="#555"/>
<rect x="3" y="9" width="4" height="4" fill="#555"/>
<rect x="9" y="9" width="4" height="4" fill="#555"/>
</svg>

Before

Width:  |  Height:  |  Size: 324 B

View File

@@ -1,45 +0,0 @@
modulejs.define('core/event', ['_'], function (_) {
var slice = Array.prototype.slice,
subscriptions = {},
sub = function (topic, callback) {
if (_.isString(topic) && _.isFunction(callback)) {
if (!subscriptions[topic]) {
subscriptions[topic] = [];
}
subscriptions[topic].push(callback);
}
},
unsub = function (topic, callback) {
if (_.isString(topic) && _.isFunction(callback) && subscriptions[topic]) {
subscriptions[topic] = _.without(subscriptions[topic], callback);
}
},
pub = function (topic, data) {
var args = slice.call(arguments, 1);
// console.log('EVENT PUB', topic, args);
if (_.isString(topic) && subscriptions[topic]) {
_.each(subscriptions[topic], function (callback) {
callback.apply(topic, args);
});
}
};
return {
sub: sub,
unsub: unsub,
pub: pub
};
});

View File

@@ -1,56 +0,0 @@
modulejs.define('core/format', ['_', 'moment'], function (_, moment) {
var decimalMetric = {
t: 1000.0,
k: 1000.0,
u: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
},
binaryMetric = {
t: 1024.0,
k: 1024.0,
u: ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']
},
defaultMetric = decimalMetric,
defaultDateFormat = 'YYYY-MM-DD HH:mm',
setDefaultMetric = function (useBinaryMetric) {
defaultMetric = useBinaryMetric ? binaryMetric : decimalMetric;
},
formatSize = function (size, metric) {
metric = metric || defaultMetric;
if (!_.isNumber(size) || size < 0) {
return '';
}
var i = 0,
maxI = metric.u.length - 1;
while (size >= metric.t && i < maxI) {
size /= metric.k;
i += 1;
}
return (i <= 1 ? Math.round(size) : size.toFixed(1)).toString() + ' ' + metric.u[i];
},
setDefaultDateFormat = function (dateFormat) {
defaultDateFormat = dateFormat;
},
formatDate = function (millis) {
return _.isNumber(millis) && millis ? moment(millis).format(defaultDateFormat) : '';
};
return {
setDefaultMetric: setDefaultMetric,
formatSize: formatSize,
setDefaultDateFormat: setDefaultDateFormat,
formatDate: formatDate
};
});

View File

@@ -1,5 +0,0 @@
modulejs.define('core/langs', ['config', '_'], function (config, _) {
return _.extend({}, config.langs);
});

View File

@@ -1,209 +0,0 @@
modulejs.define('core/location', ['_', 'modernizr', 'core/settings', 'core/event', 'core/notify'], function (_, modernizr, allsettings, event, notify) {
var settings = _.extend({
smartBrowsing: true,
unmanagedInNewWindow: true
}, allsettings.view),
doc = document,
history = settings.smartBrowsing && modernizr.history ? window.history : null,
forceEncoding = function (href) {
return href
.replace(/\/+/g, '/')
.replace(/ /g, '%20')
.replace(/!/g, '%21')
.replace(/#/g, '%23')
.replace(/\$/g, '%24')
.replace(/&/g, '%26')
.replace(/'/g, '%27')
.replace(/\(/g, '%28')
.replace(/\)/g, '%29')
.replace(/\*/g, '%2A')
.replace(/\+/g, '%2B')
.replace(/\,/g, '%2C')
// .replace(/\//g, '%2F')
.replace(/:/g, '%3A')
.replace(/;/g, '%3B')
.replace(/=/g, '%3D')
.replace(/\?/g, '%3F')
.replace(/@/g, '%40')
.replace(/\[/g, '%5B')
.replace(/\]/g, '%5D');
},
reUriToPathname = /^.*:\/\/[^\/]*|[^\/]*$/g,
uriToPathname = function (uri) {
return uri.replace(reUriToPathname, '');
},
hrefsAreDecoded = (function () {
var testpathname = '/a b',
a = doc.createElement('a');
a.href = testpathname;
return uriToPathname(a.href) === testpathname;
}()),
encodedHref = function (href) {
var a = doc.createElement('a'),
location;
a.href = href;
location = uriToPathname(a.href);
if (hrefsAreDecoded) {
location = encodeURIComponent(location).replace(/%2F/ig, '/');
}
return forceEncoding(location);
};
var absHref = null,
getDomain = function () {
return doc.domain;
},
getAbsHref = function () {
return absHref;
},
getItem = function () {
return modulejs.require('model/item').get(absHref);
},
load = function (callback) {
modulejs.require('core/server').request({action: 'get', items: true, itemsHref: absHref, itemsWhat: 1}, function (json) {
var Item = modulejs.require('model/item'),
item = Item.get(absHref);
if (json) {
var found = {};
_.each(json.items, function (jsonItem) {
var e = Item.get(jsonItem.absHref, jsonItem.time, jsonItem.size, jsonItem.is_managed, jsonItem.content, jsonItem.md5, jsonItem.sha1);
found[e.absHref] = true;
});
_.each(item.content, function (e) {
if (!found[e.absHref]) {
Item.remove(e.absHref);
}
});
}
if (_.isFunction(callback)) {
callback(item);
}
});
},
setLocation = function (newAbsHref, keepBrowserUrl) {
event.pub('location.beforeChange');
newAbsHref = encodedHref(newAbsHref);
if (absHref !== newAbsHref) {
absHref = newAbsHref;
if (history) {
if (keepBrowserUrl) {
history.replaceState({absHref: absHref}, '', absHref);
} else {
history.pushState({absHref: absHref}, '', absHref);
}
}
}
var item = getItem();
if (item.isLoaded) {
event.pub('location.changed', item);
refresh();
} else {
notify.set('loading...');
load(function () {
item.isLoaded = true;
notify.set();
event.pub('location.changed', item);
});
}
},
refresh = function () {
var item = getItem(),
oldItems = _.values(item.content);
event.pub('location.beforeRefresh');
load(function () {
var newItems = _.values(item.content),
added = _.difference(newItems, oldItems),
removed = _.difference(oldItems, newItems);
event.pub('location.refreshed', item, added, removed);
});
},
setLink = function ($el, item) {
$el.attr('href', item.absHref);
if (history && item.isFolder() && item.isManaged) {
$el.on('click', function () {
setLocation(item.absHref);
return false;
});
}
if (settings.unmanagedInNewWindow && !item.isManaged) {
$el.attr('target', '_blank');
}
};
if (history) {
window.onpopstate = function (e) {
if (e.state && e.state.absHref) {
setLocation(e.state.absHref, true);
}
};
}
event.sub('ready', function () {
setLocation(document.location.href, true);
});
return {
forceEncoding: forceEncoding,
getDomain: getDomain,
getAbsHref: getAbsHref,
getItem: getItem,
setLocation: setLocation,
refresh: refresh,
setLink: setLink
};
});

View File

@@ -1,25 +0,0 @@
modulejs.define('core/notify', ['$'], function ($) {
var template = '<div id="notify"/>',
set = function (content) {
if (content) {
$('#notify').stop(true, true).html(content).fadeIn(400);
} else {
$('#notify').stop(true, true).fadeOut(400);
}
},
init = function () {
$(template).hide().appendTo('body');
};
init();
return {
set: set
};
});

View File

@@ -1,42 +0,0 @@
modulejs.define('core/resource', ['_', '$', 'config', 'core/settings'], function (_, $, config, settings) {
var win = window,
appHref = settings.appHref,
imagesHref = appHref + 'client/images/',
fallbackHref = appHref + 'client/images/fallback/',
themesHref = appHref + 'client/themes/',
scriptsHref = appHref + 'client/js/',
fallbacks = ['file', 'folder', 'folder-page', 'folder-parent', 'ar', 'aud', 'bin', 'img', 'txt', 'vid'],
image = function (id) {
return imagesHref + id + '.svg';
},
icon = function (id) {
var baseId = id.split('-')[0],
href = config.theme[id] || config.theme[baseId];
if (href) {
return themesHref + href;
}
if (_.indexOf(fallbacks, id) >= 0) {
return fallbackHref + id + '.svg';
}
if (_.indexOf(fallbacks, baseId) >= 0) {
return fallbackHref + baseId + '.svg';
}
return fallbackHref + 'file.svg';
};
return {
image: image,
icon: icon
};
});

View File

@@ -1,53 +0,0 @@
modulejs.define('core/server', ['$', '_', 'config', 'core/location'], function ($, _, config, location) {
var server = {
backend: config.setup.BACKEND,
api: config.setup.API === true,
name: config.setup.SERVER_NAME,
version: config.setup.SERVER_VERSION,
request: function (data, callback) {
if (server.api) {
$.ajax({
url: location.getAbsHref(),
data: data,
type: 'POST',
dataType: 'json'
})
.done(function (json) {
callback(json);
})
.fail(function () {
callback();
});
} else {
callback();
}
},
formRequest: function (data) {
if (server.api) {
var $form = $('<form method="post" style="display:none;"/>')
.attr('action', location.getAbsHref());
_.each(data, function (val, key) {
$('<input type="hidden"/>')
.attr('name', key)
.attr('value', val)
.appendTo($form);
});
$form.appendTo('body').submit().remove();
}
}
};
return server;
});

View File

@@ -1,9 +0,0 @@
modulejs.define('core/settings', ['config', '_'], function (config, _) {
return _.extend({}, config.options, {
appHref: config.setup.APP_HREF,
rootHref: config.setup.ROOT_HREF,
currentHref: config.setup.CURRENT_HREF
});
});

View File

@@ -1,41 +0,0 @@
modulejs.define('core/store', ['modernizr'], function (modernizr) {
var store = modernizr.localstorage ? window.localStorage : null,
key = '_h5ai',
load = function () {
if (store) {
try {
return JSON.parse(store[key]);
} catch (e) {}
}
return {};
},
save = function (obj) {
if (store) {
store[key] = JSON.stringify(obj);
}
},
put = function (key, value) {
var obj = load();
obj[key] = value;
return save(obj);
},
get = function (key) {
return load()[key];
};
return {
put: put,
get: get
};
});

View File

@@ -1,47 +0,0 @@
modulejs.define('core/types', ['config', '_'], function (config, _) {
var reEndsWithSlash = /\/$/,
regexps = {},
escapeRegExp = function (sequence) {
return sequence.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$]/g, "\\$&");
// return sequence.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
},
parse = function (types) {
_.each(types, function (patterns, type) {
var pattern = '^(' + _.map(patterns, function (p) { return '(' + escapeRegExp(p).replace(/\*/g, '.*') + ')'; }).join('|') + ')$';
regexps[type] = new RegExp(pattern, 'i');
});
},
getType = function (sequence) {
if (reEndsWithSlash.test(sequence)) {
return 'folder';
}
var slashidx = sequence.lastIndexOf('/'),
name = slashidx >= 0 ? sequence.substr(slashidx + 1) : sequence;
for (var type in regexps) {
if (regexps.hasOwnProperty(type)) {
if (regexps[type].test(name)) {
return type;
}
}
}
return 'file';
};
parse(_.extend({}, config.types));
return {
getType: getType
};
});

View File

@@ -1,42 +0,0 @@
modulejs.define('ext/autorefresh', ['_', '$', 'core/settings', 'core/event', 'core/location'], function (_, $, allsettings, event, location) {
var settings = _.extend({
enabled: false,
interval: 5000
}, allsettings.autorefresh),
timeoutId = null,
heartbeat = function () {
location.refresh();
},
before = function () {
clearTimeout(timeoutId);
},
after = function () {
clearTimeout(timeoutId);
timeoutId = setTimeout(heartbeat, settings.interval);
},
init = function () {
if (!settings.enabled) {
return;
}
settings.interval = Math.max(1000, settings.interval);
event.sub('location.beforeChange', before);
event.sub('location.beforeRefresh', before);
event.sub('location.changed', after);
event.sub('location.refreshed', after);
};
init();
});

View File

@@ -1,96 +0,0 @@
modulejs.define('ext/crumb', ['_', '$', 'core/settings', 'core/resource', 'core/event', 'core/location'], function (_, $, allsettings, resource, event, location) {
var settings = _.extend({
enabled: false
}, allsettings.crumb),
template =
'<li class="crumb">' +
'<a>' +
'<img src="' + resource.image('crumb') + '" alt=">"/>' +
'<span/>' +
'</a>' +
'</li>',
pageHintTemplate = '<img class="hint" src="' + resource.image('page') + '" alt="has index page"/>',
statusHintTemplate = '<span class="hint"/>',
update = function (item, force) {
if (!force && item.$crumb) {
return item.$crumb;
}
var $html = $(template),
$a = $html.find('a');
$html
.addClass(item.isFolder() ? 'folder' : 'file')
.data('item', item);
location.setLink($a, item);
$a.find('span').text(item.label).end();
if (item.isDomain()) {
$html.addClass('domain');
$a.find('img').attr('src', resource.image('home'));
}
if (item.isRoot()) {
$html.addClass('root');
$a.find('img').attr('src', resource.image('home'));
}
if (item.isCurrentFolder()) {
$html.addClass('current');
}
if (!item.isManaged) {
$a.append($(pageHintTemplate));
}
if (item.$crumb) {
item.$crumb.replaceWith($html);
}
item.$crumb = $html;
return $html;
},
onLocationChanged = function (item) {
var crumb = item.getCrumb(),
$ul = $('#navbar'),
found = false;
$ul.find('.crumb').each(function () {
var $html = $(this);
if ($html.data('item') === item) {
found = true;
$html.addClass('current');
} else {
$html.removeClass('current');
}
});
if (!found) {
$ul.find('.crumb').remove();
_.each(crumb, function (e) {
$ul.append(update(e, true));
});
}
},
init = function () {
if (!settings.enabled) {
return;
}
event.sub('location.changed', onLocationChanged);
};
init();
});

Some files were not shown because too many files have changed in this diff Show More