Commit Graph

70 Commits

Author SHA1 Message Date
Henry
dc52d7af58
Merge pull request #19 from ssb-ngi-pointer/frontend-css-tweaks
setup Tailwind css project in web/styles
2021-02-12 10:50:56 +01:00
Henry
884750811a fix landing page tests 2021-02-12 10:47:51 +01:00
Henry
9019ebd130 just one /style.css
use 'go generate -tags dev' to produce the dev build and 'go generate'
for the prod build. have them produce the same file.

The only problem is that one needs to run this in web/styles first
before updating assets.
2021-02-11 18:37:51 +01:00
Andre Staltz
8401472b8f
setup Tailwind css project in web/styles 2021-02-11 18:30:16 +02:00
Henry
fe26d62ce1
Merge pull request #17 (web-room-bridge) - Fixes #9
web room bridge
2021-02-11 16:43:03 +01:00
Henry
431e917fd2 eliminate global state in handlers/http_test.go 2021-02-11 15:34:03 +01:00
Henry
7fa52a6e2d various fixes
* fix nav link
* fix roomstate lock and ticker
* fix copy pasta typos

web/handlers: stop using /testing/base in news

This was a brainfart. The idea for a more minimal base template came
from another project with different frontend code.

This stopped us from seeing tempalting errors in the nav area.

Might want to scratch these tests alltogether and just have one place
with all the http tests.
2021-02-11 15:31:45 +01:00
Henry
beea19f93e seperate room state from muxrpc handler
There is a new roomstate package now with a Manager which is shared between muxrpc and the http
handler(s).

Also adds a list of peers in the room to admin dashboard.
2021-02-11 15:30:51 +01:00
Henry
a8ae13063f
Merge pull request #16 from ssb-ngi-pointer/add-i18n-defaults
web/i18n: Add defaults and test for labels (fixes #8)
2021-02-10 16:48:01 +01:00
Henry
158ef5221e web/i18n: Add defaults and test for labels (fixes #8) 2021-02-10 14:39:38 +01:00
Henry
f0a785a800
Merge pull request #6 from ssb-ngi-pointer/remove-sqlboiler-tests
Don't generate model tests
2021-02-09 17:52:06 +01:00
Henry
8029909ecf Don't generate model tests
They don't work cleanly from the repo root and they need sqlite to be
installed.

On a higher level, I expect the tests for generated code to pass if the
generation worked. Also we (will) have tests that drive the generated
code, too.
2021-02-09 17:48:03 +01:00
Henry
a9865f1cb8
Merge pull request #5 from ssb-ngi-pointer/setup-github-actions
Create GitHub Actions
2021-02-09 17:43:05 +01:00
Henry
89b51fc580
Create go.yml 2021-02-09 17:42:24 +01:00
Henry
b0e09f6867
Merge pull request #4 from ssb-ngi-pointer/change-name
change name to go-ssb-room
2021-02-09 17:39:28 +01:00
Henry
fec92d428c change name to go-ssb-room
It has been brought to my attention that "gossb" reads like "gossip..?"
to the untrained eye. That's just confusing.

Also the project hosts a single room so the plural was just wrong.
2021-02-09 17:38:51 +01:00
Henry
9d7584d87b
Merge pull request #3 from ssb-ngi-pointer/migrate-sqlite
admindb: add migrations based on rubenv/sql-migrate
2021-02-09 17:35:34 +01:00
Henry
34aa8dd2c4 fix web/handlers tests
used the route name in palce of the url
2021-02-09 17:35:17 +01:00
Henry
2f907a1753 build fixes 2021-02-09 17:29:42 +01:00
Henry
830678c914 admindb: add migrations based on rubenv/sql-migrate
This removes the nasty need for creating the database manually.

Migrations are kept in an embedded filesystem, just like the templates
and assets for the web frontend. The same -tags dev trick applies for
them.
2021-02-09 16:49:48 +01:00
Henry
4721b53f1f
Merge pull request #2 from ssb-ngi-pointer/fix-base-tpl
web/tempalates: add missing closing a tag to base
2021-02-09 16:13:09 +01:00
Henry
e62d6c06fb web/tempalates: add missing closing a tag to base 2021-02-09 16:11:48 +01:00
Henry
734ae30c23
Merge pull request #1 from ssb-ngi-pointer/web-skeleton
start http and html skelleton
2021-02-09 15:50:12 +01:00
Henry
31cbf00c93 use new auth.SetErrorHandler option 2021-02-09 13:40:57 +01:00
Henry
f71020d5d9 cleanup go.mod and pin new http/auth version 2021-02-09 13:27:11 +01:00
Henry
1fe09c1a80 add insert-user steps to README 2021-02-09 13:02:51 +01:00
Henry
02dca00bd2 add db creation workaround to the README 2021-02-09 12:59:27 +01:00
Henry
0a44d19b4b add missing license headers 2021-02-09 12:53:33 +01:00
Henry
40f73b5930 go generate 2021-02-09 12:44:12 +01:00
Henry
743de1d1f6 add simple authenticated navigation
{{is_logged_in}} returns a *admindb.User value or nil depending on their
state. This can be used to build conditional rendering.
2021-02-09 12:39:57 +01:00
Henry
ef4a2f3f22 sqlite and auth setup 2021-02-08 17:47:42 +01:00
Henry
01ed66d6df basic auth middleware setup 2021-02-08 13:02:45 +01:00
Henry
9639586d47 fix slip of the tounge 2021-02-04 17:47:02 +01:00
Henry
025a5be7ad add embedded assets server 2021-02-04 17:46:51 +01:00
Henry
2d38db1bc7 embedded templates 2021-02-04 17:25:39 +01:00
Henry
e9013a0c6b change import path
this is part of the NGI work and should be clearly indicated as such
2021-02-04 16:54:30 +01:00
Henry
f741065836 add i18n support
TODO: default files once embedded assets are there
2021-02-04 16:52:55 +01:00
Henry
0a67bf690b some cleanup and a Readme 2021-02-04 14:13:52 +01:00
Henry
98ca4f8408 examples for the news/ section 2021-02-04 12:00:12 +01:00
Henry
fdf11f9a23 start http and html skelleton 2021-02-04 11:36:02 +01:00
Henry
f31de7faa1 use newer muxrpc with Handled() 2021-02-02 17:45:17 +01:00
Henry
8280604209 rename handler package
was tunnel but we might have client too ad some point, so let's make it
tunnel/server
2021-02-01 16:45:30 +01:00
Henry
f0e6c67fe1 skip comments in authroized_keys 2021-01-29 12:06:19 +01:00
Henry
bc6bde116c endpoints: register before updating state
this way, the new person also get's the current and new state
immediatly.
2021-01-29 11:58:37 +01:00
Henry
9b368d79b6 update muxrpc branch 2021-01-28 15:07:55 +01:00
Henry
668e3dd766 simple authorized_keys file 2021-01-28 15:06:51 +01:00
Henry
0b415dfa4a take asking for endpoints also as announce 2021-01-28 15:06:24 +01:00
Henry
d977998a4c muxrpc with fixed packet skipping 2021-01-28 11:02:11 +01:00
Henry
84c36d1f71 add tunnel.connect 2021-01-28 10:55:05 +01:00
Henry
20ed882f33 AllJS basically works
need to cleanup the assertion and shutdown but ping through the tunnel
works
2021-01-27 15:42:20 +01:00