Commit Graph
54 Commits
Author SHA1 Message Date
sphericalkat ebd9f7f52c feat(pastes): add new page to show owned pastes
Signed-off-by: SphericalKat <amolele@gmail.com>
2024-05-09 19:29:13 +05:30
sphericalkat f0efa78b89 feat(menu): use a dropdown menu
Signed-off-by: SphericalKat <amolele@gmail.com>
2024-05-09 19:13:26 +05:30
sphericalkat 8eed2f1423 fix(layout): update personal site link 2023-10-04 02:11:18 +05:30
sphericalkat 54d5dd5c39 fix(api): add CORS plug to router
Signed-off-by: Amogh Lele <amolele@gmail.com>
2022-05-28 11:20:26 +05:30
sphericalkat 4fcf5489da fix(pastes): attempt getting a non-split version of the paste id
Signed-off-by: Amogh Lele <amolele@gmail.com>
2022-05-28 10:58:17 +05:30
sphericalkat 97aa091b9a Merge branch 'develop' into feature/title 2022-05-28 10:39:47 +05:30
sphericalkat 106ae8398e feat: implement custom URLs
Signed-off-by: Amogh Lele <amolele@gmail.com>
2022-05-28 10:29:47 +05:30
Amogh Lele 5a0995b991 fix(endpoint): increase parser limit to 10mb
Signed-off-by: Amogh Lele <amogh@dyte.io>
2022-05-23 16:44:51 +05:30
Amogh Lele b76d005a22 ci(actions): set up automated deploys using github actions
Signed-off-by: Amogh Lele <amogh@dyte.io>
2022-05-23 09:22:27 +05:30
Amogh Lele 76c7bd4a34 feat: add meta tags for SEO and improved UX
Signed-off-by: Amogh Lele <amogh@dyte.io>
2022-05-23 09:02:39 +05:30
Amogh Lele dbe75a5065 feat(shorten): improve ux by showing users what the shortened url is
Signed-off-by: Amogh Lele <amogh@dyte.io>
2022-05-21 16:21:02 +05:30
Amogh Lele 20a0b45954 feat(pastes): add REST routes to view and create pastes
Signed-off-by: Amogh Lele <amogh@dyte.io>
2022-05-07 00:04:59 +05:30
Akshit Garg bec57794fa feat: add paste id for showlink 2022-02-16 16:37:05 +05:30
Akshit Garg 5820652ac1 feat: add support for custom page titles
Also put the paste ID in the title for the show page
2022-02-16 16:30:30 +05:30
sphericalkat 24a1a91824 refactor(footer): update repo url
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-12-08 22:35:26 +05:30
sphericalkat 1ecb497199 fix(paste): prevent \r \n characters from interfering with url redirects
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-11-01 18:34:32 +05:30
sphericalkat ec4661fe44 fix(pastes): add stricter sanitization for markdown content
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-08 02:19:58 +05:30
sphericalkat 8e6cbc647e chore: remove leftover paste controller references
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-08 02:03:23 +05:30
sphericalkat ae8cee8ccf fix(build): don't purge used styles
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 09:06:08 +05:30
sphericalkat 8121ea2cf0 fix!(markdown): prevent html injection
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 06:20:50 +05:30
sphericalkat dd089f13f9 feat(pastes): add support for markdown
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 06:18:10 +05:30
sphericalkat 1d0b8cc4d5 feat(pastes): allow form submission using Ctrl/Cmd + S
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 06:08:25 +05:30
sphericalkat 8f4672b516 refactor(auth): use heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:58:00 +05:30
sphericalkat 2ddccce85d refactor(layout): use heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:54:37 +05:30
sphericalkat 2fa19381dc refactor(home): use heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:52:14 +05:30
sphericalkat 9b18d5186d refactor(paste): switch to heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:42:24 +05:30
Akshit Garg 8c99eb04a4 refactor(styles): use JetBrains Mono variable
- Remove Google fonts' "JetBrains Mono" as it didn't support variable
  and add the variable ttf for it

Signed-off-by: Akshit Garg <garg.akshit@gmail.com>
2021-08-21 18:01:27 +05:30
Akshit Garg 3f5b1d10ac refactor(assets): swap webpack for esbuild
- Remove all webpack and babel related npm dependencies
- Add esbuild and esbuild-plugin-postcss2 as a dependency
- Add a custom `build.js` script to build css and js with esbuild
  and copy static files to the priv/static directory
- Modify `config/dev.exs` to use that build script as a watcher instead
  of webpack
- Modify `package.json` to use that build script in instead of webpack
- Modify `KetbinWeb.Endpoint` to serve the assets directory instead of
  css and js directories from static
- Modify the `app.html.eex` layout to use `assets` directory instead of
  separate css and js directories

Signed-off-by: Akshit Garg <garg.akshit@gmail.com>
2021-08-21 17:41:46 +05:30
Akshit Garg 12ec98d15e refactor(config): use secret files in dev mode
- Refactor `config/dev.exs` to use `config/dev.secret.exs` instead of
  fetching the SMTP information from the environment and using hardcoded
  database credentials. This is useful when different developers have
  different database credentials and they use different SMTP adapters
- Add a sample `dev.secret.exs` in `config/dev.secret.sample.exs`. Also
  gitignore the origin `dev.secret.exs` file
- Add instructions on how to setup the config file for development in
  `README.md`
- Add `Plug.Swoosh.MailboxPreview` plug on "/mailbox" route in
  development mode for easier development with e-mails

Signed-off-by: Akshit Garg <garg.akshit@gmail.com>
2021-08-21 16:47:31 +05:30
sphericalkat d734e8ad02 refactor(users): add styles for remaining user management templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-20 02:27:16 +05:30
sphericalkat 2a8ee4cd1e fix(ui): fix lopsided logo
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 03:01:29 +05:30
sphericalkat 8b7c362611 fix(pastes): sanitize paste content while rendering
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 03:00:24 +05:30
sphericalkat 182a5b1e55 feat(pastes): decide highlighting rules using extension
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 02:29:24 +05:30
sphericalkat 425fb2b571 feat(pastes): use rustler for highlight NIF
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 02:05:58 +05:30
sphericalkat 478bea7efb fix(pastes): replacing a paste with a URL now shortens the URL
fixes #5

Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-16 13:53:22 +05:30
sphericalkat 47acc97955 fix(users): fix styles for login page
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-15 05:02:33 +05:30
sphericalkat 7374d7189e refactor(styles): unify look and feel across pages
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-15 04:53:50 +05:30
sphericalkat 0618654ad5 feat(pastes): handle edit permissions using plugs
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-15 04:47:44 +05:30
sphericalkat a195688bdc feat(pastes): implement editing for logged in users
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-15 04:05:39 +05:30
sphericalkat f5525d2d20 feat(paste): add user id if user is logged in
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-15 03:20:03 +05:30
sphericalkat c99df5e8bd feat(user): style register page
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-15 02:18:34 +05:30
sphericalkat 16a0c7ec98 fix(ui): fix misc ui bugs
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-15 01:25:18 +05:30
sphericalkat 75ac6be3a6 feat(pastes): add raw paste handler
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-14 15:19:16 +05:30
sphericalkat 5d05a87263 chore: prepare for prod
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-14 01:19:00 +05:30
sphericalkat aa86d9a4b9 chore(styles): clean up unused styles
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-13 12:13:59 +05:30
sphericalkat f411017280 feat(pastes): set up redirection routes
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-13 07:54:07 +05:30
sphericalkat 750d62cc73 feat(pastes): add support for url pastes
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-13 07:46:10 +05:30
sphericalkat 13728f2ef8 feat(ui): create idiomatic UI matching previous katbin iteration
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-13 06:33:43 +05:30
sphericalkat c6c54347a7 feat(pastes): add page to view pastes
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-13 05:47:13 +05:30
sphericalkat d818c7033a fix(models): prevent IDs being empty while inserting
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-12 04:29:58 +05:30