Commit Graph

82 Commits

Author SHA1 Message Date
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
Amogh Lele
bf50e4264d
fix(config): enable ipv6 for fly databases
Signed-off-by: Amogh Lele <amogh@dyte.io>
2022-05-06 21:14:21 +05:30
Amogh Lele
82e4d19e6c
feat: set up deploys with fly
Signed-off-by: Amogh Lele <amogh@dyte.io>
2022-05-06 19:54:58 +05:30
Amogh Lele
f67e8cf6f9
chore(config): upgrade deprecated config modules
Signed-off-by: Amogh Lele <amogh@dyte.io>
2022-05-06 17:11:47 +05:30
Amogh Lele
dd609b5d84
chore(deps): update dependencies
Signed-off-by: Amogh Lele <amogh@dyte.io>
2022-05-06 16:55:57 +05:30
de365b36ad
chore(build): add image to push dependencies
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-12-08 23:12:17 +05:30
24a1a91824
refactor(footer): update repo url
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-12-08 22:35:26 +05:30
56852f43be
Merge github.com:SphericalKat/katbin-elixir into develop 2021-12-08 22:34:15 +05:30
Udo Kramer
b1d4455cb8 Tweak rust linker flags 2021-12-08 22:32:35 +05:30
TruncatedDinosour
33272ee23d Fixed a typo 2021-12-08 22:31:29 +05:30
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
ec4661fe44
fix(pastes): add stricter sanitization for markdown content
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-08 02:19:58 +05:30
8e6cbc647e
chore: remove leftover paste controller references
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-08 02:03:23 +05:30
3f424a41c1
chore: migrate to prod
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-08 01:56:42 +05:30
9b2da2dbf1
feat(ui): use custom scrollbars
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 09:10:54 +05:30
ae8cee8ccf
fix(build): don't purge used styles
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 09:06:08 +05:30
bca77b0ff6
refactor(markdown): improve styling
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 06:39:22 +05:30
8121ea2cf0
fix!(markdown): prevent html injection
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 06:20:50 +05:30
dd089f13f9
feat(pastes): add support for markdown
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 06:18:10 +05:30
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
8f4672b516
refactor(auth): use heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:58:00 +05:30
2ddccce85d
refactor(layout): use heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:54:37 +05:30
2fa19381dc
refactor(home): use heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:52:14 +05:30
9b18d5186d
refactor(paste): switch to heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:42:24 +05:30
8b7073145d
chore(deps): bump phoenix and other package versions
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:29:22 +05:30
b4eb5c7f2f
chore: add sample env file
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-09-16 23:50:58 +05:30
d19fe38aee
docs(readme): add information about self hosting
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-09-16 23:48:42 +05:30
1d3a492814
chore: bump npm dependencies
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-25 13:33:45 +05:30
4388101be3
Merge pull request #6 from gargakshit/feature/esbuild 2021-08-22 17:03:29 +05:30
Akshit Garg
a3734cc6ab
refactor(styles): move the imports to the top
- Esbuild needs css imports to be on the top of the file for
  them to resolve properly

Signed-off-by: Akshit Garg <garg.akshit@gmail.com>
2021-08-21 18:10: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
0ed4427322
refactor(assets): remove webpack.config.js
Signed-off-by: Akshit Garg <garg.akshit@gmail.com>
2021-08-21 17:50:45 +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
74ed02c4da chore(build): remove node-sass and sass-loader
fixes freebsd builds

Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-20 07:00:07 +05:30
caf3535e74
feat(mailer): send mail asynchronously
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-20 03:00:17 +05:30
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
36ad9d1000
feat(users): wire up forgot password to swoosh
closes #4

Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-20 02:09:14 +05:30
816332bdd6
chore(native): run cargo fmt
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 03:24:30 +05:30
92146cd3dc
fix(build): add rust and cargo dependency to builder image
fixes #1

Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 03:22:52 +05:30
2a8ee4cd1e
fix(ui): fix lopsided logo
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 03:01:29 +05:30
8b7c362611
fix(pastes): sanitize paste content while rendering
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 03:00:24 +05:30
182a5b1e55
feat(pastes): decide highlighting rules using extension
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 02:29:24 +05:30
425fb2b571
feat(pastes): use rustler for highlight NIF
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-17 02:05:58 +05:30
ed731994d7
chore(nif): add nif stubs
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-08-16 14:10:22 +05:30