Commit graph

144 commits

Author SHA1 Message Date
André Jaenisch
e00e274873
fix: populate possible f2 servers
I figured out how to handle Objects in Svelte each blocks and can
therefore now pass the data through.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-14 10:33:48 +01:00
André Jaenisch
fc2bb247e7
chore: run prettier over Tauri conf
Basically some opinionated formatting.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-13 18:52:23 +01:00
André Jaenisch
934d8cbdd1
chore: declare REUSE copyright
Tauri introduced a set of icons. I downloaded the Anvil avatar from
Codeberg and scaled it up and down with GIMP before I tinified it using
tinypng online.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-10 15:05:13 +01:00
André Jaenisch
e2160e1380
chore: prevent target folder from being added
The documentation makes this recommendation.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-09 10:27:56 +01:00
André Jaenisch
02347759bd
chore: document tauri commands
In order to not have to remember the command I'm adding it as a npm
run-script.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-09 10:27:51 +01:00
André Jaenisch
fe999900ff
build: set up tauri
I was curious whether I could make it run. It works!

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-09 10:21:32 +01:00
André Jaenisch
1e52798e6a
chore: introduce REUSE
This required adding annotation to the whole project.
I need to double-check whether I have the license banner of AGPL in
place everywhere.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-06 16:03:12 +01:00
André Jaenisch
efc55bcd9d
chore: bump version
Some meaningful progress has been made that warrants a new version.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-06 11:47:38 +01:00
André Jaenisch
69e7a2a1ee
feat: parse HTML responses of Vervis
I can successfully log in with credentials I'm using on Vervis.
The response is then parsed into an object that could be consumed in the
rest of Anvil.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-05 13:46:32 +01:00
André Jaenisch
0783a080e8
feat: allow for linking between stories
In order to link between stories in Storybook I need to add some
attribute to elements, so that the events are prevented and navigation
can be handled by Storybook.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-03 15:24:24 +01:00
André Jaenisch
cfb58fa9c7
feat: use Inter font for heading and body
I hope I read the PenPot design correctly here.
Right now, I hotlink as documented by the font forge. We might want to
self-host down the road.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-01 12:40:09 +01:00
André Jaenisch
dd50af1764
refactor: extract form into organism
I want to explore how I could potentially reuse components. Therefore I
extract the form into a component. Given its complexity it could either
be a molecule or an organism. I went with the latter here.

I have to explore how I pass around Objects and Arrays in Svelte so that
I can move server logic up in the component tree.

When I reuse components, I potentially want to define the labels and
placeholders. Therefore the hard-coded strings have to become variables.
Eventually I will define the key on the template level and use the real
values on page level and pass it down. That would break tests currently
so I'm not doing it in this refactoring.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-28 20:13:33 +01:00
Laxystem
db1b8822e8
Translated using Weblate (Hebrew)
Currently translated at 80.0% (28 of 35 strings)

Translation: Anvil/Anvil
Translate-URL: https://translate.codeberg.org/projects/anvil/anvil/he/
2024-02-28 17:56:33 +00:00
Laxystem
6726421170
Translated using Weblate (Hebrew)
Currently translated at 48.5% (17 of 35 strings)

Translation: Anvil/Anvil
Translate-URL: https://translate.codeberg.org/projects/anvil/anvil/he/
2024-02-27 15:34:12 +00:00
Dirk
8d08c1dc8c
Translated using Weblate (German)
Currently translated at 100.0% (35 of 35 strings)

Translation: Anvil/Anvil
Translate-URL: https://translate.codeberg.org/projects/anvil/anvil/de/
2024-02-25 14:56:32 +00:00
André Jaenisch
c5e75a034a
refactor: use a Component for the route
This way I can expose the implementation to Storybook and add tests to
it.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-23 13:44:34 +01:00
André Jaenisch
31a7512a0b fix: use logical properties when possible
This way the design will adapt to the writing direction. If it is not
possible, use the ltr and rtl filter to adjust the design.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-23 12:41:16 +00:00
Dirk
23b96d9aaa
Translated using Weblate (German)
Currently translated at 100.0% (26 of 26 strings)

Translation: Anvil/Anvil
Translate-URL: https://translate.codeberg.org/projects/anvil/anvil/de/
2024-02-23 12:37:31 +00:00
André Jaenisch
4264975a16
fix: prevent XSS
I learned that I don't have to pass in the html thingy.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-21 18:13:27 +01:00
André Jaenisch
0107a83f90
chore: update translation keys
I don't think this is the right approach but I couldn't figure out how
to announce new keys to Weblate yet.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-20 14:03:59 +01:00
André Jaenisch
b3acfe0331
feat: include a language switcher
This also sets the direction of layout. I hope to be able to spot design
implementation failures faster this way.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-20 13:51:48 +01:00
André Jaenisch
20a44974d5
refactor: turn Profile page into a component
This way it is easier to inspect the design implementation.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-20 13:29:52 +01:00
André Jaenisch
34be485a49
feat: import projects form
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-16 15:48:48 +01:00
André Jaenisch
fecd15f862
refactor: extract display name into component
I could imagine that we will refactor this into even smaller components
in the future but for now, I bundle the pronoun with the display name
like this.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-15 16:18:06 +01:00
André Jaenisch
508105681b
Added translation using Weblate (Hebrew) 2024-02-14 11:41:17 +00:00
André Jaenisch
8cdccd4ba2
Deleted translation using Weblate (Hebrew) 2024-02-14 11:25:54 +00:00
André Jaenisch
62aba86d5d
feat: set up internationalisation
This allows for translating the interface using Weblate at
translate.codeberg.org!

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-14 12:11:03 +01:00
André Jaenisch
fd2ab00cb9
refactor: extract block or report buttons to atom
These have no handlers bound to them yet. At that point the atom might
be refactored to a molecule. Let's see.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-11 18:29:53 +01:00
André Jaenisch
f6c8343751
feat: extract Created partial from route
This is displaying the created time of the user's profile.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-11 14:58:01 +01:00
André Jaenisch
406b38698c
chore: apply formatting
We want to be a good citizen, don't we?

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-09 11:29:03 +01:00
André Jaenisch
9c4c8f04f4
refactor: break out routes into components
For now I'm following the Atomic Design philosophy with respect to
organising the components. I started with Avatar which wraps the
SvelteKit library with some defaults. I test it using vitest which is
now configured accordingly. All dependencies were updated to their
latest version.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-09 11:19:08 +01:00
André Jaenisch
9bb86e84b1 forms (#18)
I made a best effort attempt to design the profile page according to the
current design specification.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>

Reviewed-on: https://codeberg.org/Anvil/Anvil/pulls/18
Co-authored-by: André Jaenisch <andre.jaenisch@posteo.de>
Co-committed-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-02-07 10:39:32 +00:00
André Jaenisch
aea63c0b4b
build: upgrade all dependencies
Before making any changes to the logic of the code I've updated all
dependencies and adjusted the configurations according to the migration
documentation. I ensured that I can still run the npm scripts like
before.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2023-12-20 23:18:17 +01:00
Pere Lev
723c6127da
Account creation: Verify & Verified pages 2023-05-29 13:00:53 +03:00
Pere Lev
4c252c83ca
Add octicons and use in account creation form 2023-05-22 17:39:28 +03:00
Pere Lev
740ed4e16e
Upgrade to skeleton 1.5 2023-05-22 16:06:32 +03:00
Pere Lev
3cc0c7baf1
Account creation page + set max width 2023-05-22 14:36:14 +03:00
Pere Lev
b386498058
Add login page 2023-05-22 13:17:28 +03:00
Pere Lev
f3a4451845
Custom theme by mray 2023-05-22 12:30:47 +03:00
Pere Lev
dfe1a6160f
README: Single-page mode might be useful to support in forge-hosted version 2023-05-03 17:51:29 +03:00
Pere Lev
6e192486e5
Fix readme typo 2023-05-03 17:48:40 +03:00
Pere Lev
d62e25c942
Create first-start page & add COPYING 2023-05-03 17:41:33 +03:00
Pere Lev
1d008c4ad0
Update README and add .node-version 2023-05-03 17:37:18 +03:00
Pere Lev
e21c2309d6
Initial commit, using the "Skeleton Welcome" template 2023-05-03 12:28:02 +03:00