-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0bcaec4
Showing
56 changed files
with
8,146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** @type { import("eslint").Linter.Config } */ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:svelte/recommended", | ||
"prettier", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint"], | ||
parserOptions: { | ||
sourceType: "module", | ||
ecmaVersion: 2020, | ||
extraFileExtensions: [".svelte"], | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.svelte"], | ||
parser: "svelte-eslint-parser", | ||
parserOptions: { | ||
parser: "@typescript-eslint/parser", | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"useTabs": true, | ||
"tabWidth": 1, | ||
"singleQuote": false, | ||
"trailingComma": "all", | ||
"printWidth": 100, | ||
"plugins": ["prettier-plugin-svelte"], | ||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
// A11y doesn't play nicely with custom components, and we use @material/web :/ | ||
"svelte.plugin.svelte.compilerWarnings": { | ||
"a11y-no-static-element-interactions": "ignore", | ||
"a11y-click-events-have-key-events": "ignore", | ||
"a11y-no-noninteractive-element-interactions": "ignore", | ||
"a11y-label-has-associated-control": "ignore" | ||
}, | ||
"svelte.plugin.svelte.defaultScriptLanguage": "ts", | ||
|
||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[svelte]": { | ||
"editor.defaultFormatter": "svelte.svelte-vscode" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# WebXDC Notes | ||
|
||
Notes app with support for WebXDC application format. | ||
|
||
## Features | ||
|
||
- GFM Markdown support | ||
- Live preview of notes while editing | ||
- Folders to categorize notes | ||
- View history of notes | ||
- Mentions + View of notes you've been mentioned in | ||
- Export notes to Markdown, HTML, PDF (As well as export whole folders to zipped archives) | ||
- Import from Txt/Markdown (As well as zipped archives with these formats) | ||
|
||
## Development | ||
|
||
Use [pnpm](https://pnpm.io/) package manager | ||
|
||
- `pnpm dev` – run dev server | ||
- `pnpm build` – build app into `build/` directory, automatically generates | ||
`.xdc` file as well | ||
- It requires `zip` to be installed in order to generate `.xdc` file | ||
|
||
## License | ||
|
||
This code is licensed under GPLv3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "webxdc-notes-svelte", | ||
"license": "GPL-3.0-only", | ||
"version": "1.0.0", | ||
"author": { | ||
"name": "Im-Beast", | ||
"email": "[email protected]", | ||
"url": "https://im-beast.com" | ||
}, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"lint": "prettier --check . && eslint .", | ||
"format": "prettier --write ." | ||
}, | ||
"devDependencies": { | ||
"@iconify-json/material-symbols": "^1.1.83", | ||
"@material/web": "^1.5.0", | ||
"@sveltejs/adapter-static": "^3.0.2", | ||
"@sveltejs/kit": "^2.5.17", | ||
"@sveltejs/vite-plugin-svelte": "^3.1.1", | ||
"@types/diff": "^5.2.1", | ||
"@types/dompurify": "^3.0.5", | ||
"@types/eslint": "^8.56.10", | ||
"@typescript-eslint/eslint-plugin": "^7.13.1", | ||
"@typescript-eslint/parser": "^7.13.1", | ||
"diff": "^5.2.0", | ||
"dompurify": "^3.1.6", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-svelte": "^2.40.0", | ||
"fflate": "^0.8.2", | ||
"html2pdf.js": "^0.9.3", | ||
"marked": "^13.0.2", | ||
"prettier": "^3.3.2", | ||
"prettier-plugin-svelte": "^3.2.4", | ||
"svelte": "^4.2.18", | ||
"svelte-check": "^3.8.1", | ||
"tslib": "^2.6.3", | ||
"typescript": "^5.4.5", | ||
"unplugin-icons": "^0.19.0", | ||
"vite": "^5.3.1" | ||
}, | ||
"dependencies": { | ||
"highlight.js": "^11.10.0", | ||
"marked-footnote": "^1.2.2", | ||
"marked-highlight": "^2.1.3" | ||
} | ||
} |
Oops, something went wrong.