this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Format round

+24 -24
+2
.gitignore
··· 30 30 /target 31 31 32 32 # Added by me 33 + client/build/dev/javascript/lumina_client/lumina_client.ts 34 + client/build/ 33 35 /client/priv/static/lumina_client*.css 34 36 /client/priv/static/lumina_client*.mjs 35 37 instance.sqlite
+10 -12
README.MD
··· 10 10 > to Lustre and to websockets and to Rocket, but wanna try 11 11 > all of them out and make them succeed in this rewrite. 12 12 13 - 14 13 ### Environment variables 15 14 16 15 Part of the configuration is loaded from the database, part of it in environment variables. 17 16 Environment variables can be set in the _environment_ before run, but Lumina prefers them to be loaded from `$LUMINAFOLDER/.env`. 18 17 19 - | NAME | DEFAULT | FOR | 20 - | ----------------------------------- | ------------------------------------------- | ------------------------------------------------------------ | 21 - | `LUMINA_DB_TYPE` | `sqlite` (not recommended for production) | The kind of database to use. Options are `postgres` or `sqlite`.<br /><br /><br />**OPTIONS:**<br />_With SQLite:_<br />- `LUMINA_SQLITE_FILE` `"instance.sqlite"` SQLite file to connect to. Always a relative path from the instance folder.<br /><br />_With PostGres DB:_<br />- `LUMINA_POSTGRES_PORT` `"5432"` The port to contact the database on. <br>- `LUMINA_POSTGRES_HOST` `"localhost"` The address to contact the database on.<br>- `LUMINA_POSTGRES_USERNAME` `"lumina"` The username to log in to the database with.<br>- `LUMINA_POSTGRES_PASSWORD` (none) The password to log in to the database with. If not set, Lumina will try without.<br>- `LUMINA_POSTGRES_DATABASE` `"lumina_config"` The database to use. <br> | 22 - | `LUMINA_DB_SALT` | `sal` | The salting to use for some data on the database. | 23 - | `LUMINA_SERVER_PORT` | `8085` | Port for Lumina to accept HTTP requests on. | 24 - | `LUMINA_SERVER_ADDR` | `127.0.0.1` | Address for Lumina to accept HTTP requests on. (usually `127.0.0.1` or `0.0.0.0`) | 25 - | `LUMINA_SERVER_HTTPS` | `false` | Wether to use 'https' rather than 'http' in links, etc. (please do!) | 26 - | `LUMINA_SYNC_IID` | `localhost` | A name Lumina uses when communicating with other instances, must be equal to where it's http is facing the public internet | 27 - | `LUMINA_SYNC_INTERVAL` | `30` | Specifies the interval between syncs. Minimum is 30. | 28 - 18 + | NAME | DEFAULT | FOR | 19 + | ---------------------- | ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 20 + | `LUMINA_DB_TYPE` | `sqlite` (not recommended for production) | The kind of database to use. Options are `postgres` or `sqlite`.<br /><br /><br />**OPTIONS:**<br />_With SQLite:_<br />- `LUMINA_SQLITE_FILE` `"instance.sqlite"` SQLite file to connect to. Always a relative path from the instance folder.<br /><br />_With PostGres DB:_<br />- `LUMINA_POSTGRES_PORT` `"5432"` The port to contact the database on. <br>- `LUMINA_POSTGRES_HOST` `"localhost"` The address to contact the database on.<br>- `LUMINA_POSTGRES_USERNAME` `"lumina"` The username to log in to the database with.<br>- `LUMINA_POSTGRES_PASSWORD` (none) The password to log in to the database with. If not set, Lumina will try without.<br>- `LUMINA_POSTGRES_DATABASE` `"lumina_config"` The database to use. <br> | 21 + | `LUMINA_DB_SALT` | `sal` | The salting to use for some data on the database. | 22 + | `LUMINA_SERVER_PORT` | `8085` | Port for Lumina to accept HTTP requests on. | 23 + | `LUMINA_SERVER_ADDR` | `127.0.0.1` | Address for Lumina to accept HTTP requests on. (usually `127.0.0.1` or `0.0.0.0`) | 24 + | `LUMINA_SERVER_HTTPS` | `false` | Wether to use 'https' rather than 'http' in links, etc. (please do!) | 25 + | `LUMINA_SYNC_IID` | `localhost` | A name Lumina uses when communicating with other instances, must be equal to where it's http is facing the public internet | 26 + | `LUMINA_SYNC_INTERVAL` | `30` | Specifies the interval between syncs. Minimum is 30. | 29 27 30 28 ## Development 31 29 ··· 35 33 mise install # Installs mise deps 36 34 mise run development-watch # Watches every important file and auto restarts build process on changes. Really nice! 37 35 ``` 38 - I might just specify it a bit further sometime in the future. 39 36 37 + I might just specify it a bit further sometime in the future.
+3 -1
client/app.css
··· 11 11 } 12 12 13 13 @plugin "daisyui" { 14 - themes: lumina-light --prefers-light, lumina-dark --prefers-dark; 14 + themes: 15 + lumina-light --prefers-light, 16 + lumina-dark --prefers-dark; 15 17 } 16 18 17 19 @plugin "daisyui/theme" {
+9 -11
mise.toml
··· 1 1 [tools] 2 - biome = "latest" 3 2 bun = "1.2.14" 4 3 erlang = "27" 5 4 gleam = "1.11.0" 6 - marksman = "latest" 7 5 rust-analyzer = "latest" 8 6 taplo = "latest" 9 7 watchexec = "latest" ··· 35 33 36 34 [tasks.format-metafiles] 37 35 hide = true 38 - run = ["biome format --write --vcs-enabled=true", "taplo fmt"] 36 + run = ["bun x prettier . --write", "taplo format"] 39 37 40 38 [tasks.development-run] 41 39 description = "Run the server in development mode" ··· 50 48 [tasks.build-client] 51 49 description = "Build the client-side of Lumina and it's styles" 52 50 run = [ 53 - "gleam build --target javascript", 54 - """ 51 + "gleam build --target javascript", 52 + """ 55 53 echo 'import { main } from "./lumina_client.mjs";document.addEventListener("DOMContentLoaded", main())' > "./build/dev/javascript/lumina_client/lumina_client.ts" 56 54 """, 57 - "bun build ./build/dev/javascript/lumina_client/lumina_client.ts --minify --outfile ./priv/static/lumina_client.min.mjs --target=browser", 55 + "bun build ./build/dev/javascript/lumina_client/lumina_client.ts --minify --outfile ./priv/static/lumina_client.min.mjs --target=browser", 58 56 ] 59 57 run_windows = [ 60 - "gleam build --target javascript", 61 - "echo import { main } from `./lumina_client.mjs`;document.addEventListener(`DOMContentLoaded`, main()) > ./build/dev/javascript/lumina_client/lumina_client.ts", 62 - "bun build ./build/dev/javascript/lumina_client/lumina_client.ts --minify --outfile ./priv/static/lumina_client.min.mjs --target=browser", 58 + "gleam build --target javascript", 59 + "echo import { main } from `./lumina_client.mjs`;document.addEventListener(`DOMContentLoaded`, main()) > ./build/dev/javascript/lumina_client/lumina_client.ts", 60 + "bun build ./build/dev/javascript/lumina_client/lumina_client.ts --minify --outfile ./priv/static/lumina_client.min.mjs --target=browser", 63 61 ] 64 62 depends = "build-styles" 65 63 dir = "./client/" ··· 67 65 [tasks.build-styles] 68 66 description = "Build the styles for Lumina" 69 67 run = [ 70 - "bun i", 71 - "bun x @tailwindcss/cli -i ./app.css -o ./priv/static/lumina_client.css", 68 + "bun i", 69 + "bun x @tailwindcss/cli -i ./app.css -o ./priv/static/lumina_client.css", 72 70 ] 73 71 dir = "./client/" 74 72