Commit Graph

101 Commits

Author SHA1 Message Date
Lukas Schulte Pelkum 317d7e6d88
Fix cleanup SQL query 2022-02-07 19:53:23 +01:00
Lup Gabriel f371f4e043
fix notification showing below char/line count (#40)
* fix notification showing below char/line count

* Recompile SCSS

Co-authored-by: Lukas Schulte Pelkum <kbrt@protonmail.com>
2022-02-07 19:42:36 +01:00
Lukas Schulte Pelkum 6337c515bb
Hide unnecessary elements below 400px page width 2022-01-30 15:28:09 +01:00
Lukas Schulte Pelkum 75fa0621e4
Show character and line count (#33) 2022-01-30 15:22:38 +01:00
Lukas Schulte Pelkum 7a8d8e1573
Only enable save button when content is not empty 2022-01-30 15:12:34 +01:00
Lukas Schulte Pelkum e8e2b49466
Use text/plain as fallback content type for hastebin support 2022-01-29 22:17:42 +01:00
Lukas Schulte Pelkum 6f610a48ec
Display paste lifetime in frontend 2022-01-29 18:25:01 +01:00
Lukas Schulte Pelkum c7fcdeb91c
Include AutoDelete lifetime in /api/v2/info response 2022-01-29 16:18:40 +01:00
Lukas Schulte Pelkum 12a60526f9
Bundle 3rd party libraries (#38) 2022-01-29 16:00:28 +01:00
Lukas Schulte Pelkum 471aff5bc5
Temporarily allow customization of the frontend path (workaround for #36, #37) 2022-01-29 01:28:54 +01:00
Lukas Schulte Pelkum 7a99f85060
Skip unnecessary clipboard-write permission check (fixes #35) 2022-01-28 23:40:45 +01:00
Baalaji befc9615d5
docker: Expose 8080 from dockerfile (#30)
This helps service discovery on traefik, which uses the exposed port to determine where to reverse proxy to

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2021-12-19 13:24:53 +01:00
Baalaji 15b32b093e
Mongo: Uprev Driver and update code for MongoDB Server 4.2+ (#27)
* Update mongodb driver to 1.8.0

Signed-off-by: baalajimaestro <me@baalajimaestro.me>

* mongodb_driver: Update to support MongoDB 4.2+

https://docs.mongodb.com/manual/reference/method/db.collection.updateOne/\#update-with-an-aggregation-pipeline
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2021-11-27 19:34:57 +01:00
William Perdue ec1b8bc418
Update GitHub Action Workflow for Multi-Architecture Builds (#26)
* Fix buildx multiarch

* Update ghcr login

* second fix to ghcr login

* Update workflow for better env utilization

* Add commit hash tagging for pinned container build versions

* fix typo for github workflow env

* Use env.IMAGE_NAME for container tagging for easy changes in future

* Return pinned version for docker/login-action to v1

* Per change request, updating registry login to utilize username from secret, instead of github running actor
2021-11-17 17:46:02 +01:00
Lukas Schulte Pelkum efe0ec7556
Fix paste creation URL in frontend 2021-10-15 17:51:02 +02:00
Lukas Schulte Pelkum bd10c3321e
Fix paste creation endpoint redirection loop 2021-10-15 17:45:17 +02:00
Ringo Hoffmann dbbd3d24e0
Add embed Mode (#23)
* add embed mode [#21]

* fix stupid typo c:

* fix typo - episode 2

* Recompile CSS & fix lien number container height

Co-authored-by: Lukas Schulte Pelkum <kbrt@protonmail.com>
2021-10-13 18:06:15 +02:00
Lukas Schulte Pelkum b11d4eb478
Show a notification on encryption toggle 2021-09-09 18:20:00 +02:00
Marcel f931627c77
Fix typos (#20) 2021-07-31 12:58:26 +02:00
Lukas Schulte Pelkum 63a0a3d840
Add API change notice 2021-07-30 22:07:57 +02:00
Lukas Schulte Pelkum 1818fac196
Remove the paste-specific autoDelete field 2021-07-30 21:51:33 +02:00
Lukas Schulte Pelkum 4f3b5b193b
Implement clientside paste encryption 2021-07-30 21:24:08 +02:00
Lukas Schulte Pelkum d4e3430feb
Implement live line number rendering 2021-07-28 13:21:08 +02:00
Lukas Schulte Pelkum 6172ad463b
Update paste report webhook request 2021-07-24 17:03:40 +02:00
Lukas Schulte Pelkum e8f7fa239e
Add option to define ID and modification token generation characters (#17) 2021-07-24 17:00:29 +02:00
Lukas Schulte Pelkum 7af1f9431b
Fix trailing slash 2021-07-23 23:50:01 +02:00
Lukas Schulte Pelkum 70c4392390
Improve the frontend (API v2 functionalities) (#18)
* Fix line number height issue

* Fix notification container position

* Remove line wrapping

* Switch to the new API

* Rework JS & implement paste editing

* Implement paste reports

* Document the report webhook
2021-07-23 23:39:37 +02:00
Lukas Schulte Pelkum 149abf77f1
Fix paste saving SQL query 2021-07-22 23:33:19 +02:00
Lukas Schulte Pelkum 9eaf9c3053
Fix postgres migration 2021-07-22 22:44:00 +02:00
Lukas Schulte Pelkum 99504e0bba
Implement API v2 (#13)
* Add documentation notice

* Rename the deletion token to modification token

* Implement API basics

* Implement paste modification endpoint (#10)

* Implement paste metadata

* Implement report webhook support

* Document API

* Document paste entity

* Update syntax highlighting types (js -> jsonc)

* Update migrator
2021-07-22 22:26:21 +02:00
Lukas Schulte Pelkum 4c392b4b52
Implement raw paste endpoint 2021-06-21 20:09:40 +02:00
Lukas Schulte Pelkum 185f1511a6
Update readme 2021-06-20 16:26:26 +02:00
Lukas Schulte Pelkum 90f25ec220
Improve the web frontend (#9)
* Fix line flowing out of div

* Revert line highlighting

* Fix tab key behaviour

* Move links and version information to a footer

* Fix footer hiding last code line

* Calculate line number offset based on line overflow

* Refactor some code
2021-06-20 15:58:36 +02:00
Ringo Hoffmann 8cbb62070e
Add content length cap for paste creation endpoint (#8)
* add content length cap

* add development docker compose stack

* Fix paste creation error notification data

* Add length cap to hastebin endpoint as well

* Mention length cap in Readme

Co-authored-by: Lukas Schulte Pelkum <kbrt@protonmail.com>
2021-05-23 20:55:16 +02:00
Lukas Schulte Pelkum ef364db0e5
Update credits URL 2021-05-08 14:02:41 +02:00
Lukas Schulte Pelkum f772643d20
Add credits 2021-05-08 13:58:19 +02:00
Lukas Schulte Pelkum 71e51d2b29
Change GitHub repo URL 2021-05-08 13:43:07 +02:00
Lukas Schulte Pelkum 5f7df183b4
Force specific Content-Type value for JS (#6) 2021-04-29 14:57:08 +02:00
Lukas Schulte Pelkum 542bb5b17d
Implement deletion token toggle & master 2021-04-20 16:38:00 +02:00
Lukas Schulte Pelkum f9fc232afe
Fix Docker workflow 2021-04-18 22:13:45 +02:00
Lukas Schulte Pelkum b5524f2b7e
Fix Docker workflow 2021-04-18 22:10:15 +02:00
Lukas Schulte Pelkum 86522b63df
Fix file system driver ID listing 2021-04-18 22:05:48 +02:00
Lukas Schulte Pelkum 239ad901dd
Implement GitHub actions CI 2021-04-18 21:31:07 +02:00
Lukas Schulte Pelkum e6f0d0948b
Update documentation 2021-04-18 21:25:17 +02:00
Lukas Schulte Pelkum a1d037801c
Implement working postgres driver 2021-04-15 21:30:37 +02:00
Lukas Schulte Pelkum ce9794b2c6
Restructure drivers 2021-04-15 21:03:26 +02:00
Lukas Schulte Pelkum 681ee9f1d0
Fix some stuff 2021-04-15 20:59:32 +02:00
Lukas Schulte Pelkum 1792ef1c38
Rework project structure 2021-04-15 20:15:42 +02:00
Lukas Schulte Pelkum de2add44ec
Bump to Go 1.16 2021-04-15 19:26:17 +02:00
Lukas SP 078d9895a2 Prevent from sending deletion token hash 2020-10-02 18:25:39 +02:00