Commit Graph
100 Commits
Author SHA1 Message Date
pztrn 74035622f5 Make linter happy.
continuous-integration/drone/push Build is passing
2022-08-19 21:55:42 +05:00
pztrn 5fc6d3a181 Application superstructure (or supersingleton, if you want).
continuous-integration/drone/push Build is failing
Got rid of context thing which misleads due to existance of stdlib's
context package.

Also fixed golangci-lint configuration.

Fixes #20.
2022-08-19 21:52:49 +05:00
pztrn b87921c811 README update.
continuous-integration/drone/push Build is passing
2022-08-14 16:51:17 +05:00
pztrn 74ea9b6863 Prepare to release 0.4.1.
continuous-integration/drone/push Build is passing
2022-08-14 16:26:11 +05:00
pztrn 30f8b4975c Get rid of flagger.
continuous-integration/drone/push Build is passing
2022-08-14 16:20:16 +05:00
pztrn dcd361de1f Update dependencies, fix footer link.
continuous-integration/drone/push Build is passing
2022-08-14 16:02:16 +05:00
pztrn 2ec0e28243 Make linter happy and move to os from io/ioutil for reading/writing.
continuous-integration/drone/push Build is passing
2022-08-14 15:49:05 +05:00
pztrn df5671586e Update images used for building containers and code test/lint, fill CHANGELOG.
continuous-integration/drone/push Build is failing
2022-08-14 15:34:47 +05:00
pztrn 59dafc373f Update chroma to 2.2.0, line number links appeared.
continuous-integration/drone/push Build is failing
2022-08-14 14:57:54 +05:00
pztrn 25489dc103 Forgotten files for previous commit.
continuous-integration/drone/push Build is failing
2022-08-14 14:49:31 +05:00
pztrn 1dc6dfe00e Update README and mention where bugreporting should take place.
continuous-integration/drone/push Build is failing
Also added markdownlint configuration.
2022-08-14 14:47:28 +05:00
pztrn 02e933efed Use mirrorred images in Dockerfile.
continuous-integration/drone/push Build is passing
2022-06-28 22:19:42 +05:00
pztrn d2b3304a5a As it isn't Drone official plugins now, containers with dind should be privileged.
continuous-integration/drone/push Build is failing
2022-06-28 21:44:23 +05:00
pztrn 9164c53c54 Force docker plugin version.
continuous-integration/drone/push Build is failing
2022-06-28 21:38:09 +05:00
pztrn 18734ebd18 Switch to mirrorred images for Drone CI.
continuous-integration/drone/push Build encountered an error
2022-06-28 21:19:35 +05:00
pztrn 6b04a1dcd5 Update Dockerfile to use latest versions of Golang and Alpine.
continuous-integration/drone/push Build is passing
2022-06-26 22:52:50 +05:00
pztrn 1cb93c7d97 Update Drone configuration.
continuous-integration/drone/push Build is passing
2022-06-26 22:49:37 +05:00
pztrn f8f0302564 Make linter happy and update dependencies.
continuous-integration/drone/push Build is failing
2022-06-26 22:26:39 +05:00
pztrn 7b6a425908 Update Drone configuration. 2022-06-26 22:10:53 +05:00
pztrn 591c24bab7 Update Drone configuration. 2022-06-26 22:08:23 +05:00
pztrn d85c9cb53c Update Drone configuration. 2022-06-26 22:04:03 +05:00
pztrn 2b44a60ee7 The Great Linting Fixes, Drone configuration fix (again) and flatfile changes.
Great linting fixes has been applied, thanks to golangci-lint for
extensive reporting.

Fixed Drone configuration to use array for when-branch statement in
Docker plugin.

Flatfile storage from now will write files with 0600 permission for
greater security.
2021-11-20 22:19:58 +05:00
pztrn 218e0bf667 Remove -mod=vendor from golangci-lint GOFLAGS. 2021-11-20 22:00:52 +05:00
pztrn 006eb6e72a Use newer golang with Drone and update badge in README. 2021-11-20 22:00:02 +05:00
pztrn 5eae5595e9 Drone fixes. 2021-11-20 02:23:47 +05:00
pztrn 0f47434f60 Move from fileb0x to embed.FS. Fixes #22.
Also removed unused fontawesome JS.
2021-06-16 06:22:33 +05:00
pztrn 383233202e Fix registry logging in by CI when uploading Docker image. 2021-06-15 00:16:44 +05:00
pztrn 968d945205 More Greater Linting. 2021-06-15 00:11:58 +05:00
pztrn 6ea6e2e144 The Great Sources Linting. 2021-06-14 23:48:34 +05:00
pztrn 3265c5a4b2 Proper image-alias for DIND service in CI. 2021-06-14 23:10:35 +05:00
pztrn 1210ecb510 Fix CI config. 2021-06-14 23:08:54 +05:00
pztrn dec022e460 Update CI configuration. 2021-06-14 23:05:59 +05:00
pztrn 79791ef228 Update golang versions everywhere, use alpine 3.13 for image, remove vendor dir. 2021-06-14 22:59:21 +05:00
pztrn a0f896dc53 CI config update. 2021-01-09 06:23:28 +05:00
pztrn fa7a79310d Assets update. 2021-01-09 06:15:38 +05:00
pztrn ce962ddd00 Version bump. 2021-01-09 06:14:16 +05:00
pztrn 164a37d41f A pretty basic pastes cleanup procedure.
Fixes #16.
2021-01-09 06:09:26 +05:00
pztrn 3ebff29113 Linting fixes about struct alignment. 2021-01-08 12:01:53 +05:00
pztrn 7f04a9a7bb Typo fix and missed dependencies files. 2021-01-08 12:00:38 +05:00
pztrn a2a21482e2 Dependencies update and fix for line linking.
Fixes #20.
2021-01-08 11:56:35 +05:00
pztrn ffb42f43eb README update. 2020-02-29 23:51:23 +05:00
pztrn 3f9801b1bd Update chroma and make line numbers linkable.
Yet no links will be generated.

Related to #20.
2020-02-29 23:39:09 +05:00
pztrn 825fd724ff Some logging refactoring.
Fixes #14.
2020-02-29 23:30:44 +05:00
pztrn 5f58741159 Added maximum request body size limiting.
Fixes #19.
2020-02-29 22:49:44 +05:00
pztrn 47672c586d Linter configuration fixes and linting issues fixes.
Fixes #17.
2020-02-29 22:41:06 +05:00
pztrn 11897d0e1a Drone CI recipe fix. 2019-12-22 01:24:13 +05:00
pztrnandGitea 02cea49fc4 Merge branch 'linting' of fastpastebin/fastpastebin into master 2019-12-21 20:19:21 +00:00
pztrn a52b18ffe4 Linting. 2019-12-22 01:17:18 +05:00
pztrn da4bc379d8 Typo in commend and switching to discordrone for notifications. 2019-12-22 00:56:43 +05:00
pztrnandGitea 9c9f0c1f68 Merge branch 'linting' of fastpastebin/fastpastebin into master 2019-10-13 11:28:15 +00:00
pztrn 6a787e7e23 Linting things. 2019-10-13 16:26:52 +05:00
pztrnandGitea cdc8ecf49b Merge branch 'readme-update' of fastpastebin/fastpastebin into master 2019-10-13 09:52:06 +00:00
pztrn bd981023da README update. 2019-10-13 14:50:11 +05:00
pztrnandGitea a982e07faf Fixed improper tooltip (popups) rendering. Fixes #8. (#11) 2019-10-13 09:25:29 +00:00
pztrn 0bbb415852 Drone pipelines update. 2019-10-13 14:02:33 +05:00
pztrn 2159aadfcb Fixed Safari stuck when clicking on dropdowns by updating Bulma.
Fixes #4.
2019-10-12 15:10:13 +05:00
pztrn 3ebf9b653e Put docker image into approriate repo. Related to #6. 2019-10-12 14:30:20 +05:00
pztrn 4d60a9b1b6 Switching to Drone CI and giredore. 2019-10-12 14:26:46 +05:00
pztrn e042c4414f Moved from gitlab.com to Gitea with giredore. 2019-10-12 14:18:35 +05:00
pztrn 333fc1d12a CI configuration. 2019-09-25 18:47:51 +05:00
pztrn 7f2174a33e Moved Dockerfile and docker-compose.yml to top directory. 2019-09-25 18:45:50 +05:00
pztrn e26a466efc Merge branch 'feature/docker' into 'master'
Dockerize the app

See merge request pztrn/fastpastebin!1
2019-07-23 04:30:22 +00:00
pztrn 4f01e2f5ce Logger refactoring, part 1. 2019-04-13 00:05:22 +05:00
pztrn 7281b9be65 Refactoring for pastes domain for code reusing and better structuring. 2019-04-12 23:29:42 +05:00
pztrn 19b5ef3d9f Fastfix for previous two commits (sorry) and chroma update.
Well, doing "git add ." not from repository's root is a bad idea.

Updated chroma dependency, added more languages to syntax highlighting.
2019-03-07 08:43:28 +05:00
pztrn 3fe51fc6c5 Dependencies update and database not available crash fix.
Added forgotten dependencies update.

Fixed fastpastebin crash when database isn't available and added cute
error screen for informing users about such condition (both HTML and raw).
2019-03-07 08:39:12 +05:00
pztrn 19a3a5004c The Huge Refactoring. 2019-03-07 07:56:50 +05:00
pztrn 0bf20cd2c9 Assets update. 2018-12-01 04:46:27 +05:00
pztrn 35c217fe46 Builder script and gitignore update. 2018-12-01 04:23:15 +05:00
pztrn 849c72b238 Version bump. 2018-12-01 03:55:11 +05:00
pztrn c565ec8f21 Fixed timezone things with postgresql and made "Forever" work. 2018-12-01 03:49:04 +05:00
pztrn aa5e11329f PostgreSQL support. 2018-12-01 03:23:52 +05:00
pztrn b6556d6e90 Moved database migrations for MySQL dialect into approriate package. 2018-12-01 02:29:14 +05:00
pztrn 400ce0db0c Quick and dirty fix to get database connection reestablish if connection was lost. 2018-12-01 02:23:36 +05:00
pztrn fc8f4e9d8b Switch to Gitlab. 2018-12-01 02:16:06 +05:00
pztrn 2beb9ecef9 Version bump - we're 0.2.0! 2018-05-27 12:27:43 +05:00
pztrn 0cca0f453f Database dialects, proper database shutdown, pagination in configuration.
Added possibility to use different database (storage) backends. Currently
supported: flatfiles and mysql. Fixes #2.

Added database shutdown call. This call will properly shutdown database
connections (in case of RDBMS) or flush pastes index cache on disk (in
case of flatfiles).

De-hardcoded pagination count. Fixes #12.
2018-05-27 12:25:01 +05:00
pztrn 296e2771d6 Version 0.1.1. 2018-05-26 16:10:38 +05:00
pztrn c8005a4836 Navbar burger isn't used, removed. 2018-05-26 13:58:50 +05:00
pztrn 342a4d1d7c Templates and templater, added footer with application data. Fixes #8 and #7. 2018-05-26 13:50:13 +05:00
pztrn d7e9865c91 Proper check for paste's password input. Fixes #4 and should also fix #5. 2018-05-26 12:09:53 +05:00
pztrn 9f0beb7e3e Set proper logger level, fixes #6. 2018-05-26 12:05:37 +05:00
pztrn d7e58613ba Changelog and v0.1.0. 2018-05-19 10:10:30 +05:00
pztrn 0756e23696 Gitter lags, all to Keybase! :P 2018-05-18 23:43:08 +05:00
pztrn d85bb26498 README update with compilation requirements warning and updated features list. 2018-05-18 22:50:32 +05:00
pztrn af75fb19cb Dependencies. 2018-05-18 22:31:40 +05:00
pztrn 94a0a435b6 Passworded pastes are here. 2018-05-18 22:28:04 +05:00
pztrn b8e9895617 Update README's functionality section. 2018-05-17 22:43:15 +05:00
pztrn 8ecf597283 Pastes expiration. 2018-05-17 22:41:21 +05:00
pztrn abf10c0904 Proper pagination. 2018-05-17 22:16:07 +05:00
pztrn ec2e885438 README update about current functionality and public pastes saving fix. 2018-05-02 11:29:29 +05:00
pztrn a8c8f6de36 Fix for private pastes can be obtained in RAW mode without TS. 2018-05-01 23:08:12 +05:00
pztrn c926a58276 Private pastes, systemd unit file, design updates.
It is now possible to create private pastes, just check approriate
checkbox.

Added systemd unit file. Don't forget to fix it for your needs!

Updated design for pastes viewing, now paste information shows in
table. Improves mobile experience at least :).
2018-05-01 22:56:45 +05:00
pztrn 64c2d62a49 Design works and viewing raw paste data. 2018-05-01 18:43:06 +05:00
pztrn 73505ffdb6 Pagination links fix. 2018-05-01 17:52:40 +05:00
pztrn 850fbb55ab Captcha and design works.
Added captcha generation. As we're working without JS - there is no
possibility to reload image, only if user will reload whole web page.

Some design works - set monospace font for paste textarea (will
use system-defined default monospace font) and lowered font size
in paste views.
2018-05-01 17:45:36 +05:00
pztrn 6150e3c1fd Forgotten vendored packages and README update. 2018-05-01 15:01:40 +05:00
pztrn 398aea2697 Syntax highlight and README update. 2018-05-01 14:41:36 +05:00
pztrn 48d43ca097 Pagination, readable error messages to user, syntax highlighting started.
Pagination now works. Temporary hardcoded 10 pastes per page, will be put
in configuration later. Maybe.

From now user will receive readable error message if error occured.

Started to work on syntax highlighting, tried to make lexers detection
work but apparently to no avail.
2018-05-01 02:37:51 +05:00
pztrn 79c7d39759 Moved SQL queries from model to separate queries file. 2018-04-30 23:07:07 +05:00