data endpoint for entity 90008 (aka. a website)
0
fork

Configure Feed

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

chore: init svelte project

+209 -280
-5
.gitattributes
··· 1 - ############################################################################### 2 - # Set default behavior to automatically normalize line endings. 3 - ############################################################################### 4 - * text=auto 5 -
+21 -3
.gitignore
··· 1 - result 2 - .obsidian 3 - .trash 1 + node_modules 2 + 3 + # Output 4 + .output 5 + .vercel 6 + /.svelte-kit 7 + /build 8 + 9 + # OS 10 + .DS_Store 11 + Thumbs.db 12 + 13 + # Env 14 + .env 15 + .env.* 16 + !.env.example 17 + !.env.test 18 + 19 + # Vite 20 + vite.config.js.timestamp-* 21 + vite.config.ts.timestamp-*
+1
.npmrc
··· 1 + engine-strict=true
+4
.prettierignore
··· 1 + # Package Managers 2 + package-lock.json 3 + pnpm-lock.yaml 4 + yarn.lock
+8
.prettierrc
··· 1 + { 2 + "useTabs": true, 3 + "singleQuote": true, 4 + "trailingComma": "none", 5 + "printWidth": 100, 6 + "plugins": ["prettier-plugin-svelte"], 7 + "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] 8 + }
+38
README.md
··· 1 + # create-svelte 2 + 3 + Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte). 4 + 5 + ## Creating a project 6 + 7 + If you're seeing this, you've probably already done this step. Congrats! 8 + 9 + ```bash 10 + # create a new project in the current directory 11 + npm create svelte@latest 12 + 13 + # create a new project in my-app 14 + npm create svelte@latest my-app 15 + ``` 16 + 17 + ## Developing 18 + 19 + Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: 20 + 21 + ```bash 22 + npm run dev 23 + 24 + # or start the server and open the app in a new browser tab 25 + npm run dev -- --open 26 + ``` 27 + 28 + ## Building 29 + 30 + To create a production version of your app: 31 + 32 + ```bash 33 + npm run build 34 + ``` 35 + 36 + You can preview the production build with `npm run preview`. 37 + 38 + > To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
bun.lockb

This is a binary file and will not be displayed.

+33
eslint.config.js
··· 1 + import js from '@eslint/js'; 2 + import ts from 'typescript-eslint'; 3 + import svelte from 'eslint-plugin-svelte'; 4 + import prettier from 'eslint-config-prettier'; 5 + import globals from 'globals'; 6 + 7 + /** @type {import('eslint').Linter.FlatConfig[]} */ 8 + export default [ 9 + js.configs.recommended, 10 + ...ts.configs.recommended, 11 + ...svelte.configs['flat/recommended'], 12 + prettier, 13 + ...svelte.configs['flat/prettier'], 14 + { 15 + languageOptions: { 16 + globals: { 17 + ...globals.browser, 18 + ...globals.node 19 + } 20 + } 21 + }, 22 + { 23 + files: ['**/*.svelte'], 24 + languageOptions: { 25 + parserOptions: { 26 + parser: ts.parser 27 + } 28 + } 29 + }, 30 + { 31 + ignores: ['build/', '.svelte-kit/', 'dist/'] 32 + } 33 + ];
-90
flake.lock
··· 1 - { 2 - "nodes": { 3 - "html-nix": { 4 - "inputs": { 5 - "nixpkgs": "nixpkgs", 6 - "parts": "parts" 7 - }, 8 - "locked": { 9 - "lastModified": 1689376761, 10 - "narHash": "sha256-T3UBWQAqmMmsIpgNySzxlbel9UjREGQJPJDyGY8BUWQ=", 11 - "ref": "refs/heads/master", 12 - "rev": "1f8450f6e4c42e2fd6204df95e513531001733b3", 13 - "revCount": 71, 14 - "type": "git", 15 - "url": "https://git.gaze.systems/dusk/html.nix.git" 16 - }, 17 - "original": { 18 - "type": "git", 19 - "url": "https://git.gaze.systems/dusk/html.nix.git" 20 - } 21 - }, 22 - "nixpkgs": { 23 - "locked": { 24 - "lastModified": 1680668850, 25 - "narHash": "sha256-mQMg13yRsS0LXVzaeoSPwqgPO6yhkGzGewPgMSqXSv8=", 26 - "owner": "NixOS", 27 - "repo": "nixpkgs", 28 - "rev": "4a65e9f64e53fdca6eed31adba836717a11247d2", 29 - "type": "github" 30 - }, 31 - "original": { 32 - "owner": "NixOS", 33 - "ref": "nixpkgs-unstable", 34 - "repo": "nixpkgs", 35 - "type": "github" 36 - } 37 - }, 38 - "nixpkgs-lib": { 39 - "locked": { 40 - "dir": "lib", 41 - "lastModified": 1680213900, 42 - "narHash": "sha256-cIDr5WZIj3EkKyCgj/6j3HBH4Jj1W296z7HTcWj1aMA=", 43 - "owner": "NixOS", 44 - "repo": "nixpkgs", 45 - "rev": "e3652e0735fbec227f342712f180f4f21f0594f2", 46 - "type": "github" 47 - }, 48 - "original": { 49 - "dir": "lib", 50 - "owner": "NixOS", 51 - "ref": "nixos-unstable", 52 - "repo": "nixpkgs", 53 - "type": "github" 54 - } 55 - }, 56 - "parts": { 57 - "inputs": { 58 - "nixpkgs-lib": "nixpkgs-lib" 59 - }, 60 - "locked": { 61 - "lastModified": 1680392223, 62 - "narHash": "sha256-n3g7QFr85lDODKt250rkZj2IFS3i4/8HBU2yKHO3tqw=", 63 - "owner": "hercules-ci", 64 - "repo": "flake-parts", 65 - "rev": "dcc36e45d054d7bb554c9cdab69093debd91a0b5", 66 - "type": "github" 67 - }, 68 - "original": { 69 - "owner": "hercules-ci", 70 - "repo": "flake-parts", 71 - "type": "github" 72 - } 73 - }, 74 - "root": { 75 - "inputs": { 76 - "html-nix": "html-nix", 77 - "nixpkgs": [ 78 - "html-nix", 79 - "nixpkgs" 80 - ], 81 - "parts": [ 82 - "html-nix", 83 - "parts" 84 - ] 85 - } 86 - } 87 - }, 88 - "root": "root", 89 - "version": 7 90 - }
-124
flake.nix
··· 1 - { 2 - inputs = { 3 - html-nix.url = "git+https://git.gaze.systems/dusk/html.nix.git"; 4 - nixpkgs.follows = "html-nix/nixpkgs"; 5 - parts.follows = "html-nix/parts"; 6 - }; 7 - 8 - outputs = inputs @ {parts, ...}: 9 - parts.lib.mkFlake {inherit inputs;} (topArgs: { 10 - systems = ["x86_64-linux"]; 11 - imports = [inputs.html-nix.flakeModule]; 12 - perSystem = { 13 - config, 14 - lib, 15 - ... 16 - }: let 17 - l = lib // builtins; 18 - html-nix = config.html-nix.lib; 19 - site = local: 20 - html-nix.mkSiteFrom { 21 - inherit local; 22 - src = ./src; 23 - config = { 24 - baseurl = "https://gaze.systems"; 25 - title = "dusk's place"; 26 - iconPath = "resources/icon.png"; 27 - siteLang = "en"; 28 - descriptionsById = { 29 - "404" = "Page not found."; 30 - "index" = "Home page of dusk's place with information about the website."; 31 - "posts" = "A listing of posts published on the website."; 32 - "_exporting_ssh_key_from_gpg" = "Instructions explaining how to export SSH keys from GPG."; 33 - }; 34 - footerContent = '' 35 - <div class="bg-svg"></div> 36 - <div class="bg-svg-fg"></div> 37 - ''; 38 - }; 39 - templater = ctx: 40 - l.pipe ctx [ 41 - topArgs.config.html-nix.lib.templaters.simple 42 - (ctx: 43 - l.recursiveUpdate ctx { 44 - site."resources"."icon.png" = ./src/resources/icon.png; 45 - site."resources"."wave.svg" = ./src/resources/wave.svg; 46 - site."resources"."wavealt.svg" = ./src/resources/wave-alt.svg; 47 - site."site.css" = '' 48 - ${ctx.site."site.css"} 49 - 50 - .bg-svg, .bg-svg-fg { 51 - position: absolute; 52 - bottom: 0; 53 - left: 0; 54 - width: 100vw; 55 - 56 - background-size: cover; 57 - background-repeat: repeat-x; 58 - } 59 - 60 - .bg-svg { 61 - z-index: -2; 62 - height: 50vh; 63 - 64 - background-image: url(resources/wave.svg); 65 - 66 - animation: move-svg 200s linear infinite; 67 - } 68 - 69 - .bg-svg-fg { 70 - z-index: -1; 71 - height: 40vh; 72 - 73 - background-image: url(resources/wavealt.svg); 74 - 75 - animation: move-svg 100s linear infinite reverse; 76 - } 77 - 78 - @keyframes move-svg { 79 - 0% { 80 - background-position: 0 0; 81 - } 82 - 83 - 50% { 84 - background-position: 100vw 0; 85 - } 86 - 87 - 100% { 88 - background-position: 200vw 0; 89 - } 90 - } 91 - 92 - body { 93 - background: #3d1f7a; 94 - color: #fff; 95 - } 96 - 97 - a { 98 - color: #007fff; 99 - } 100 - 101 - a.novisited:visited { 102 - color: #007fff; 103 - } 104 - 105 - a:visited { 106 - color: #bf40bf; 107 - } 108 - 109 - pre,code { 110 - background: #333; 111 - color: #fff; 112 - } 113 - ''; 114 - } 115 - ) 116 - ]; 117 - }; 118 - dev = html-nix.mkServeFromSite (site true); 119 - in { 120 - packages.site = html-nix.mkSitePathFrom (site false); 121 - apps.site.program = "${dev}/bin/serve"; 122 - }; 123 - }); 124 - }
+33
package.json
··· 1 + { 2 + "name": "website", 3 + "version": "0.0.1", 4 + "private": true, 5 + "scripts": { 6 + "dev": "vite dev", 7 + "build": "vite build", 8 + "preview": "vite preview", 9 + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", 10 + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", 11 + "lint": "prettier --check . && eslint .", 12 + "format": "prettier --write ." 13 + }, 14 + "devDependencies": { 15 + "@sveltejs/adapter-auto": "^3.0.0", 16 + "@sveltejs/kit": "^2.0.0", 17 + "@sveltejs/vite-plugin-svelte": "^3.0.0", 18 + "@types/eslint": "^8.56.7", 19 + "eslint": "^9.0.0", 20 + "eslint-config-prettier": "^9.1.0", 21 + "eslint-plugin-svelte": "^2.36.0", 22 + "globals": "^15.0.0", 23 + "prettier": "^3.1.1", 24 + "prettier-plugin-svelte": "^3.1.2", 25 + "svelte": "^4.2.7", 26 + "svelte-check": "^3.6.0", 27 + "tslib": "^2.4.1", 28 + "typescript": "^5.0.0", 29 + "typescript-eslint": "^8.0.0-alpha.20", 30 + "vite": "^5.0.3" 31 + }, 32 + "type": "module" 33 + }
+13
src/app.d.ts
··· 1 + // See https://kit.svelte.dev/docs/types#app 2 + // for information about these interfaces 3 + declare global { 4 + namespace App { 5 + // interface Error {} 6 + // interface Locals {} 7 + // interface PageData {} 8 + // interface PageState {} 9 + // interface Platform {} 10 + } 11 + } 12 + 13 + export {};
+12
src/app.html
··· 1 + <!doctype html> 2 + <html lang="en"> 3 + <head> 4 + <meta charset="utf-8" /> 5 + <link rel="icon" href="%sveltekit.assets%/favicon.png" /> 6 + <meta name="viewport" content="width=device-width, initial-scale=1" /> 7 + %sveltekit.head% 8 + </head> 9 + <body data-sveltekit-preload-data="hover"> 10 + <div style="display: contents">%sveltekit.body%</div> 11 + </body> 12 + </html>
-28
src/index.md
··· 1 - <style> 2 - h6:before { 3 - all: unset; 4 - } 5 - </style> 6 - 7 - # about 8 - 9 - hi, i'm dusk, a software engineer and aspiring game developer. 10 - feel free to send an e-mail or DM me on Discord if you have anything to ask. 11 - 12 - + contact: 13 - - discord: yusdacra 14 - - e-mail: y.bera003.06@pm.me 15 - + others: 16 - - bluesky: https://bsky.app/profile/gaze.systems 17 - - misskey.art: https://misskey.art/@yusdacra 18 - 19 - ## bio 20 - 21 - i love using Nix / NixOS for anything. 22 - i like developing with Rust for my hobby or work projects. 23 - my projects are on [my GitHub](https://github.com/yusdacra) and [my Gitea](https://git.gaze.systems/dusk). 24 - 25 - i love playing (and making) video games. 26 - you can find any game i develop [here on my itch.io page](https://yusdacra.itch.io/). 27 - 28 - ###### [this site's source is available here](https://git.gaze.systems/dusk/website).
+1
src/lib/index.ts
··· 1 + // place files you want to import through the `$lib` alias in this folder.
-9
src/posts/_exporting ssh key from gpg.md
··· 1 - - gpg --export-secret-ssh-key doesn't work 2 - - gpg --export-ssh-key works to export public key 3 - 4 - ----------- 5 - 6 - - to export secret ssh key first remove password from your [A]uthentication subkey 7 - - you can do this with `gpg --edit-key KEYID` and then `passwd` and `save` 8 - - then do `gpg --export-secret-subkeys KEYID! | openpgp2ssh KEYID > ssh_key` 9 -
src/resources/icon.png

This is a binary file and will not be displayed.

src/resources/icon.webp

This is a binary file and will not be displayed.

-11
src/resources/wave-alt.svg
··· 1 - <?xml version="1.0" encoding="utf-8"?> 2 - <svg id="wave" style="transform:rotate(0deg); transition: 0.3s" viewBox="0 0 1440 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com"> 3 - <defs> 4 - <linearGradient id="sw-gradient-0" x1="0" x2="0" y1="1" y2="0"> 5 - <stop stop-color="rgba(107, 213, 44, 1)" offset="0"/> 6 - <stop stop-color="rgba(107, 213, 44, 1)" offset="1"/> 7 - </linearGradient> 8 - <bx:guide x="1441.0930872017134" y="165.14410770893244" angle="-90"/> 9 - </defs> 10 - <path style="transform:translate(0, 0px); opacity:1" fill="url(#sw-gradient-0)" d="M 0 165 L 26.7 150 C 72.192 120.938 119.554 60.623 160 60 C 213.294 59.179 267 120 320 155 C 373.3 190 427 200 480 215 C 533.3 230 587 250 640 225 C 693.3 200 747 130 800 130 C 853.3 130 907 200 960 190 C 1013.3 180 1067 90 1120 85 C 1173.3 80 1227.415 158.934 1280 180 C 1333.487 201.428 1389.415 178.414 1440 165 C 1491.746 151.279 1547 220 1600 200 C 1653.3 180 1707 90 1760 80 C 1813.3 70 1867 140 1920 180 C 1973.3 220 2027 230 2080 220 C 2133.3 210 2187 180 2240 170 C 2293.3 160 2347 170 2400 190 C 2453.3 210 2507 240 2560 245 C 2613.3 250 2667 230 2720 210 C 2773.3 190 2827 170 2880 155 C 2933.3 140 2987 130 3040 145 C 3093.3 160 3147 200 3200 195 C 3253.3 190 3307 140 3360 120 C 3413.3 100 3467 110 3520 115 C 3573.3 120 3627 120 3680 135 C 3733.3 150 3787 180 3813 195 L 3840 210 L 3840 300 L 3813.3 300 C 3786.7 300 3733 300 3680 300 C 3626.7 300 3573 300 3520 300 C 3466.7 300 3413 300 3360 300 C 3306.7 300 3253 300 3200 300 C 3146.7 300 3093 300 3040 300 C 2986.7 300 2933 300 2880 300 C 2826.7 300 2773 300 2720 300 C 2666.7 300 2613 300 2560 300 C 2506.7 300 2453 300 2400 300 C 2346.7 300 2293 300 2240 300 C 2186.7 300 2133 300 2080 300 C 2026.7 300 1973 300 1920 300 C 1866.7 300 1813 300 1760 300 C 1706.7 300 1653 300 1600 300 C 1546.7 300 1493 300 1440 300 C 1386.7 300 1333 300 1280 300 C 1226.7 300 1173 300 1120 300 C 1066.7 300 1013 300 960 300 C 906.7 300 853 300 800 300 C 746.7 300 693 300 640 300 C 586.7 300 533 300 480 300 C 426.7 300 373 300 320 300 C 266.7 300 213 300 160 300 C 106.7 300 53 300 27 300 L 0 300 L 0 165 Z"/> 11 - </svg>
-10
src/resources/wave.svg
··· 1 - <?xml version="1.0" encoding="utf-8"?> 2 - <svg id="wave" style="transform:rotate(0deg); transition: 0.3s" viewBox="0 0 1440 430" version="1.1" xmlns="http://www.w3.org/2000/svg"> 3 - <defs> 4 - <linearGradient id="sw-gradient-0" x1="0" x2="0" y1="1" y2="0"> 5 - <stop stop-color="rgba(107, 213, 44, 1)" offset="0"/> 6 - <stop stop-color="rgba(80.792, 162.008, 32.523, 1)" offset="1"/> 7 - </linearGradient> 8 - </defs> 9 - <path style="transform:translate(0, 0px); opacity:1" fill="url(#sw-gradient-0)" d="M 0 86 L 46.251 67.859 C 175.531 14.217 238.887 227.328 288 293.8 C 345.208 371.228 480 215 576 186.3 C 672 158 768 186 864 215 C 960 244 1055.968 271.887 1152 236.5 C 1248.032 201.113 1351.412 125.867 1440 86 C 1528.588 46.133 1632 143 1728 150.5 C 1824 158 1920 100 2016 71.7 C 2112 43 2208 43 2304 50.2 C 2400 57 2496 72 2592 129 C 2688 186 2784 287 2880 315.3 C 2976 344 3072 301 3168 243.7 C 3264 186 3360 115 3456 71.7 C 3552 29 3648 14 3744 50.2 C 3840 86 3936 172 4032 200.7 C 4128 229 4224 201 4320 179.2 C 4416 158 4512 143 4608 164.8 C 4704 186 4800 244 4896 229.3 C 4992 215 5088 129 5184 143.3 C 5280 158 5376 272 5472 329.7 C 5568 387 5664 387 5760 329.7 C 5856 272 5952 158 6048 143.3 C 6144 129 6240 215 6336 229.3 C 6432 244 6528 186 6624 143.3 C 6720 100 6816 72 6864 57.3 L 6912 43 L 6912 430 L 6864 430 C 6816 430 6720 430 6624 430 C 6528 430 6432 430 6336 430 C 6240 430 6144 430 6048 430 C 5952 430 5856 430 5760 430 C 5664 430 5568 430 5472 430 C 5376 430 5280 430 5184 430 C 5088 430 4992 430 4896 430 C 4800 430 4704 430 4608 430 C 4512 430 4416 430 4320 430 C 4224 430 4128 430 4032 430 C 3936 430 3840 430 3744 430 C 3648 430 3552 430 3456 430 C 3360 430 3264 430 3168 430 C 3072 430 2976 430 2880 430 C 2784 430 2688 430 2592 430 C 2496 430 2400 430 2304 430 C 2208 430 2112 430 2016 430 C 1920 430 1824 430 1728 430 C 1632 430 1536 430 1440 430 C 1344 430 1248 430 1152 430 C 1056 430 960 430 864 430 C 768 430 672 430 576 430 C 480 430 384 430 288 430 C 192 430 96 430 48 430 L 0 430 L 0 86 Z"/> 10 - </svg>
+2
src/routes/+page.svelte
··· 1 + <h1>Welcome to SvelteKit</h1> 2 + <p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
static/favicon.png

This is a binary file and will not be displayed.

+18
svelte.config.js
··· 1 + import adapter from '@sveltejs/adapter-auto'; 2 + import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; 3 + 4 + /** @type {import('@sveltejs/kit').Config} */ 5 + const config = { 6 + // Consult https://kit.svelte.dev/docs/integrations#preprocessors 7 + // for more information about preprocessors 8 + preprocess: vitePreprocess(), 9 + 10 + kit: { 11 + // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. 12 + // If your environment is not supported, or you settled on a specific environment, switch out the adapter. 13 + // See https://kit.svelte.dev/docs/adapters for more information about adapters. 14 + adapter: adapter() 15 + } 16 + }; 17 + 18 + export default config;
+19
tsconfig.json
··· 1 + { 2 + "extends": "./.svelte-kit/tsconfig.json", 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "checkJs": true, 6 + "esModuleInterop": true, 7 + "forceConsistentCasingInFileNames": true, 8 + "resolveJsonModule": true, 9 + "skipLibCheck": true, 10 + "sourceMap": true, 11 + "strict": true, 12 + "moduleResolution": "bundler" 13 + } 14 + // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias 15 + // except $lib which is handled by https://kit.svelte.dev/docs/configuration#files 16 + // 17 + // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes 18 + // from the referenced tsconfig.json - TypeScript does not merge them in 19 + }
+6
vite.config.ts
··· 1 + import { sveltekit } from '@sveltejs/kit/vite'; 2 + import { defineConfig } from 'vite'; 3 + 4 + export default defineConfig({ 5 + plugins: [sveltekit()] 6 + });