b87f8d07d5
Make only actual text in container selectable
...
Previously there were preceded and appended newlines copied with the actual code when selecting everything due to invisible whitespace outside of the nested elements of the text-container
2021-05-02 18:14:31 +02:00
fab625a4d4
Fix typo
...
Pepega
2021-04-07 15:39:50 +02:00
79ec30f30b
Prevent line numbers from being selectable
...
When selecting everything (Ctrl+A) the line numbers should not be selected
2021-04-07 15:28:42 +02:00
1f6f1daeec
Minor stylistic change
2021-04-06 15:23:56 +02:00
9bd1847da5
Set Content-Type of raw paste in DocumentHandler
2021-04-06 10:26:40 +02:00
e4998cb94c
Fix textarea not resizing to 100%
...
With declaration of doctype the textarea element did not resize to 100% height anymore due to HTML5 compliance mode changes
2021-04-06 10:16:32 +02:00
c00f65a385
Improve HTML and mobile viewing slightly
...
* Add DOCTYPE declaration
* Set proper viewport scaling for mobile viewing
* Remove some tag closing not needed for HTML5
2021-02-14 20:34:46 +00:00
f93aac983a
Set Content-Type of raw paste to plaintext
2021-02-14 20:19:19 +00:00
dependabot[bot]
592e484d35
Bump eslint from 7.9.0 to 7.10.0 ( #10 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.9.0 to 7.10.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.9.0...v7.10.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-01 01:22:07 +02:00
Paweł
8ad927810f
Added all dependencies to package.json ( #11 )
...
It seems to be a better practice to keep all dependencies documented in repo and package-lock, so there will be no issues with installing them manually. Even though there are more deps that self-hosters might not use, it makes it easier to change configuration and manage some things like docker images (see #8 ).
2020-10-01 01:12:07 +02:00
zneix
7808ccf009
Rewrote key generator tests, fixed vowels
...
-Tests were not brought up to date with some updates that were done to key generator modules.
-Apparently original creator had no idea that 'y' is a vowel; fixed this issue and reflected changes in actual files.
2020-09-23 01:07:32 +02:00
zneix
d2c5641886
0.2.5
2020-09-20 18:22:15 +02:00
zneix
509971c5ac
Switched to proper babel-minify lib
...
I Decided to remove static asset compression from actual code to make runtime faster and moved it to package.json script which only builds application once on installation.\nAfter this commit, after every update that changed static/application.js, you also need to run npm run-script build after git pull
2020-09-20 18:18:38 +02:00
zneix
45b4ce87a8
Updated config documentation, changed env vars
...
Removed HASTE_ prefix as it would not work on evironments like Heroku, relevant comment: https://github.com/zneix/haste-server/pull/7#issuecomment-695790378
2020-09-20 16:39:49 +02:00
zneix
58c37bf677
Copying example config in case config doesn't exist & env vars
...
This change makes it possible to start haste server with no further configuration, supporting "out-of-box" solutions for Heroku / Dokku and preferrably other platforms
2020-09-20 12:42:46 +02:00
dependabot[bot]
63d2568f91
Bump eslint from 7.8.1 to 7.9.0 ( #5 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.8.1 to 7.9.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.8.1...v7.9.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 16:54:38 +02:00
twiclo
f8c3a58b3a
Updated highlightjs to support many more languages ( #6 )
...
We updated highlight.min.js library to newer version (v9.12.0 -> 10.2.0) and added support for many languages. Updated extensionMap accordingly and also removed from it some unnecessary aliases, like 'json' since they are already natively supported by highlight.min.js library.
There also a new documentation page under docs/languages.md which lists all supported aliases.
2020-09-18 16:19:34 +02:00
zneix
3d501c980f
Made app.js proper Class, added support for non-absolute path
...
Something that would solve relevant upstream issues/prs: seejohnrun/haste-server#53 seejohnrun/haste-server#140
2020-09-05 18:13:49 +02:00
zneix
7c7fd10c29
Updated haste-client information
2020-09-05 18:06:43 +02:00
zneix
7d476a668e
Rewritten postgresql document store
...
This is experimental as there are couple issues with attemting to set duplicate keys and connecting on startup, but it's working regardless of those issues.\nMaybe I can look into solving those later if needed
2020-09-03 19:24:34 +02:00
dependabot[bot]
e3e45bee3c
Bump mocha from 8.1.2 to 8.1.3 ( #2 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 8.1.2 to 8.1.3.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v8.1.2...v8.1.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-02 16:23:04 +02:00
dependabot[bot]
7171809d20
Bump eslint from 7.7.0 to 7.8.1 ( #4 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.7.0 to 7.8.1.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.7.0...v7.8.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-02 16:21:45 +02:00
zneix
04e1f09fed
Patched POST API bug
...
It is no longer possible to make a POST request with no body content and make a "ghost key" - which upon requesting returns 404, but it considered as a taken key
2020-09-02 16:18:47 +02:00
zneix
7de68695fe
Replaced all callbacks with promises in document stores
2020-09-02 16:16:54 +02:00
zneix
c165781b18
Rewrote redis storage handler
...
also removed unnecessary newline in file storage handler
2020-09-01 23:43:54 +02:00
zneix
a4cf027900
Switched to promises in file document store
2020-08-30 03:27:38 +02:00
zneix
b4f42219e5
Added proper documentation
2020-08-29 05:29:39 +02:00
zneix
1efc62a8c5
Rewrote (and fixed) dictionary key generator
2020-08-29 00:40:36 +02:00
zneix
2e2b69c43c
Rewrote phonetic key generator
2020-08-29 00:39:07 +02:00
zneix
15b8899629
rewrote file document storage
2020-08-29 00:06:49 +02:00
zneix
d303416dba
fixed eslint formatting
2020-08-28 23:57:50 +02:00
Paweł
9255094ec4
Fixed dependabot's file
...
Maybe long spacing is wrong in general
2020-08-28 04:51:54 +02:00
Paweł
6edab93976
Fixed dependabot's file
...
I guess it doesn't like tabs, had to switch to Spaces: 4 indent
2020-08-28 04:50:00 +02:00
zneix
daabcf7dcd
Config rewrite
2020-08-28 04:46:48 +02:00
zneix
e4eeec3d27
Updated eslint rules
2020-08-28 04:39:03 +02:00
zneix
4a583a52ce
Enabled dependabot
2020-08-28 04:31:58 +02:00
zneix
bd5c7f9261
Added mongodb as document store adapter
2020-08-27 00:42:48 +02:00
zneix
f3288c4e39
Made server run async
2020-08-27 00:39:06 +02:00
zneix
78aabf90bb
Refactored static files compression
2020-08-26 16:04:20 +02:00
zneix
c585e3b815
Huge refactor, switched to express
2020-08-26 04:54:58 +02:00
zneix
06315a91a8
security and deprecation fixes
2020-08-25 22:57:13 +02:00
John Crepezzi
9b0a5ff0a3
Merge pull request #291 from j3parker/s3-document-store
...
Add an Amazon S3 document store
2020-02-27 11:39:12 -05:00
Jacob Parker
1fff48568f
Document the IAM permissions
2019-07-08 16:59:04 +01:00
Jacob Parker
b4c666fbcf
Add an Amazon S3 document store
2019-06-28 19:25:49 +01:00
John Crepezzi
b866c33c93
Merge pull request #173 from sebastiansterk/master
...
removed padding for #box for correct view
2019-04-05 17:30:42 -04:00
John Crepezzi
f3838ab4a8
Merge pull request #251 from seejohnrun/handle-redis-disconnect
...
Handle redis error and re-establish connection
2018-09-19 10:38:34 -04:00
John Crepezzi
bf2b1c957a
Handle redis error and re-establish connection
2018-09-19 10:37:34 -04:00
John Crepezzi
ee1c1c0856
Merge pull request #231 from seejohnrun/ensure-raw-utf8
...
Added charset to raw content type
2018-07-12 14:26:05 -04:00
John Crepezzi
b087ac8dd1
Added charset to raw content type
...
Closes #230
2018-07-12 14:25:27 -04:00
John Crepezzi
d922667f56
Merge pull request #221 from PassTheMayo/patch-1
...
Fixed unnecessary logging when document not found
2018-04-30 19:45:16 -04:00