Commit Graph

2110 Commits

Author SHA1 Message Date
Bobby Wibowo
2f6c728e64
Updates
Moved page.prepareShareX() to a single JS file named sharex.js. It'll be loaded in home and dashboard pages, and both home.js and dashboard.js will rely on the function provided by it.

The generated ShareX config file will also properly support cases where the safe is being hosted in a subdir now (e.i. https://example.com/lolisafe).
2018-10-09 02:30:22 +07:00
Bobby Wibowo
5bd343638a
Updates
Moved utils.getPrettyBytes() and utils.getPrettySize() to client's dashboard.js.

Thus, server will no longer return prettified size and date (it'll be prettified by the client instead).

To be honest, I don't even know why I had them in server-side, it's obviously better this way.
2018-10-09 01:54:16 +07:00
Bobby Wibowo
e2831f2181
Updates
* uploadController.js: expect some multer error codes and don't log their stack traces to console when they occur.

* yarn.lock: added integrity field (yarn's new addition).
2018-10-08 23:14:10 +07:00
Bobby Wibowo
94255700be
Updated style.css
Show vertical scrollbar only if necessary.
2018-10-08 22:28:37 +07:00
Kana
5fe57f6dd1
Merge pull request #157 from Kosemii/patch-1
Fixed my website name and description
2018-10-01 15:48:11 -03:00
Kana
b105ff273c
Merge pull request #156 from dragonfire535/typos
Fix README typos
2018-10-01 15:48:04 -03:00
Kosemii
ec630b2c24
Fixed my website name and description 2018-10-01 19:36:36 +01:00
Daniel Odendahl Jr
69dfaa6c27 Fix README typos 2018-10-01 14:08:48 +00:00
Bobby Wibowo
d4b6933891
Improved help message for URL upload
* Hide notice about max size if it's equal to max size of regular uploads.

* Show notice about DuckDuckGo's proxy if it's turned on.

* Also updated description in config.sample.js to further emphasize about the limitation of using DuckDuckGo's proxy.
2018-09-30 05:38:13 +07:00
Bobby Wibowo
a36062d33c
Updated dashboard.js
Add to album prompt will no longer ask for confirmation (i.e. Are you sure?), instead it will go directly to album selection. If you don't want to continue, you can always press Cancel.

Updated version string in _globals.njk.
2018-09-26 18:57:33 +07:00
Bobby Wibowo
30c011ce5c
Replaced snekfetch with node-fetch 2018-09-23 23:28:15 +07:00
Bobby Wibowo
db015c87aa
Merge branch 'master' into safe.fiery.me 2018-09-22 21:04:07 +07:00
Kana
558abcca90
Merge pull request #154 from alphv/patch-3
subdomain change
2018-09-22 09:29:23 -03:00
Alpha
304d8c5775
subdomain change 2018-09-22 12:25:26 +02:00
Kana
b18828d814
Merge pull request #151 from WeebDev/exec-blocklist
Added .exec to blacklist
2018-09-20 22:11:57 -03:00
Kayo
3e0be53c62
Added .exec to blacklist
Mac/Unix executable files.
2018-09-20 15:07:31 -07:00
Bobby Wibowo
8f9843bf5f
Merge branch 'master' into safe.fiery.me 2018-09-20 18:45:42 +07:00
Bobby Wibowo
0d38995b2b
Updates
* When gitHash in config.js is set to true, latest commit hash of the currently enabled git repo/branch will be displayed in home and nojs uploader pages.

* Error pages can now be configured with errorPages option (their root directory and their file names).
2018-09-20 18:41:17 +07:00
Bobby Wibowo
d875a604be
Updated uploadController.js
Updated virus scan handling.
Virus name will now be reported to its uploader.
On the rare chance clamd suddenly dies while the safe is still running, it will now print a message to uploader with the error code, and telling them to contact sysadmin.
2018-09-20 17:45:16 +07:00
Kana
de7e639c75
Merge pull request #150 from alphv/patch-2
Update README.md
2018-09-19 04:57:07 -03:00
Kana
dddeff0187
Update README.md 2018-09-19 04:56:58 -03:00
Alpha
b353d009db
Update README.md 2018-09-19 09:52:51 +02:00
Bobby Wibowo
65442c18c5
Reworked extension parsing
Removed "path-complete-extname" module in favor of an in-house solution, utilsController.extname().

For now the function will attempt to preserve multi-archive extensions (.001, .002, and so on), as well as some known tarballs (.tar.gz and the likes).

The function will always return lower case extension. It should be fine, but do keep it in mind.
2018-09-18 02:32:27 +07:00
Bobby Wibowo
b47bbb90d6
Updated uploadController.js
Fixed upload breaking when clam scanning is disabled. This was due to me forgetting to update the if-logic after switching from "clam-engine" to "clamdjs", since the latter made me have to re-format the config option due to it also having IP and port.
2018-09-15 04:40:58 +07:00
Kana
51e4d6182a
Merge pull request #149 from iilukas/patch-1
Add discordimages.com as a domain
2018-09-12 17:00:33 -03:00
Lukas
8427372059
Update README.md 2018-09-12 15:50:19 -04:00
Kana
cc2318b22a
Merge pull request #148 from ImUrX/patch-2
Remove my domain
2018-09-12 16:33:09 -03:00
Bobby Wibowo
635027bde4
Updated migration.js
Makes the script more informative by printing columns that are getting skipped because they already exist.
2018-09-07 22:34:00 +07:00
Bobby Wibowo
715132a0d6
Updated package.json
Added a new yarn script/shortcut, "yarn randver". It's a shortcut to a one-liner node script to generate 10 characters long of a random string using "randomstring" module.
This will be used for version strings in _globals.njk.
2018-09-07 22:26:29 +07:00
Bobby Wibowo
8e74c7f5bd
Updated dashboard
* Added "ShareX user profile" menu item to administration sidebar. This do the same thing as the ShareX icon in the homepage, which is to download a ShareX config.

* Updated version string in _globals.njk. A few of the previous commits also modified some JS files, but I forgot to update the version string back then.
2018-09-07 22:22:17 +07:00
Bobby Wibowo
2bfe24758c
Merge branch 'master' into safe.fiery.me 2018-09-07 22:05:15 +07:00
Bobby Wibowo
ed7612bd89
Fix .eslintrc.json for client-side JS files
I can't remember why I extended the config with "eslint:recommended" instead of "standard" back then. I know I wanted to force an older ecmaversion, but even then it would still work just fine with standard.
I've fixed it now to use standard. I've also applied auto-fix to dashboard.js and home.js, which fixed some stray or missing whitespaces, as well as the indenting of case's inside switch statement.
2018-09-07 22:02:04 +07:00
Uriel
4e7a9b9fe6
Update README.md 2018-09-06 22:07:06 -03:00
Kana
bb3761c23e
Merge pull request #144 from SanchezSihaya/patch-1
Anutha one
2018-09-06 20:25:28 -03:00
Kana
0d40f21ce8
Merge pull request #143 from Kosemii/patch-1
Remove inactive clones
2018-09-06 20:25:16 -03:00
Bobby Wibowo
7587bfa408
Updates
* Updated utilsController.js: Unlink thumb of type symlink whenever generateThumbs() is called.

* Updated thumbs.js: Add stats (success/error/skipped).
2018-09-05 00:29:53 +07:00
Bobby Wibowo
29f9187e92
Updated scripts/thumbs.js
* Patched getFiles() function to regard symbolic link files as nonexistent. By default failing thumbs will create symbolic links to a placeholder image. Previously the script would regard those symbolic links as existing thumbs, thus preventing the script from generating thumbs for those files.

* Added verbose option. Previously the script would print even all files that already had thumbs. Now it would only print files with missing thumbs, and enabling the option would restore the previous behavior.
2018-09-05 00:02:24 +07:00
Bobby Wibowo
2e959a3286
Updated README.md (typo) 2018-09-04 23:39:43 +07:00
Bobby Wibowo
f46621771e
Updated README.md 2018-09-04 23:37:19 +07:00
Bobby Wibowo
ace263be03
Updated config.sample.js
This is the new format of the scan option for the previous clamdjs commit. I forgot to include changes to the sample config file.
2018-09-04 23:11:20 +07:00
Bobby Wibowo
56bdd08ee7
Init 'browser-ecma5' branch (#7)
* Downgraded ecma version of client-side scripts to v5. This change means no more backtick strings and some others.

* Massively modified auth.js, dashboard.js and home.js to support the downgrade (dashboard.js had the most changes).

* Removed enter key event handler from auth page. The previous code had some small issues. I'd rather not have the handler than let the issues persist. I'll eventually look into adding this again in the future.

* Updated uploadController.js to handle some invalid requests into /api/delete and /api/bulkdelete.
2018-09-04 22:49:37 +07:00
Bobby Wibowo
a207c4a806
Init 'clamdjs' branch (#8)
Use clamdjs module instead of clam-engine. This module connects to clam daemon server.
2018-09-04 22:48:24 +07:00
Bobby Wibowo
36da76357e
Updates
* Added an experimental virus scanning feature using ClamAV. This has only been tested with an Ubuntu machine.

* File extensions will now be parsed with path-complete-extname module. This will ensure extensions such as .tar.gz are properly parsed.

Notice: It may take a minute or so to start the safe with virus scanning, as apparently the module takes a while to create the engine. I'm guessing since it'll be loaded to memory? Either way, once the engine is created, everything should work fine. Virus scanning should also not have that much of an impact to the upload time.
2018-09-02 03:37:26 +07:00
Bobby Wibowo
bf31a59f2c
Updates
Added meta tag support for Google site verification.
2018-08-31 01:45:51 +07:00
Sanchez
9a4047afa5
Anutha one 2018-08-26 19:43:11 +10:00
Kosemii
20984be41f
Remove inactive clones 2018-08-26 01:12:28 +01:00
Bobby Wibowo
b49d625a01
Merge branch 'master' into safe.fiery.me 2018-08-21 06:31:52 +07:00
Bobby Wibowo
49ce5aa654
Merge branch 'browser-ecma6' into safe.fiery.me 2018-08-21 06:28:14 +07:00
Bobby Wibowo
e204187efc
Updates
* Updated README.md to include information about the thumbnails generation script.

* Added .markdownlint.json to disable 2 rules from markdownlint.
2018-08-21 06:24:50 +07:00
Kana
6847cbb346
Merge pull request #142 from BigBrainAFK/patch-1
Added discordjs.moe
2018-08-10 09:26:03 -03:00