Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Beast committed Jul 21, 2024
0 parents commit 0bcaec4
Show file tree
Hide file tree
Showing 56 changed files with 8,146 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
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
31 changes: 31 additions & 0 deletions .eslintrc.cjs
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",
},
},
],
};
10 changes: 10 additions & 0 deletions .gitignore
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-*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
4 changes: 4 additions & 0 deletions .prettierignore
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
9 changes: 9 additions & 0 deletions .prettierrc
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" } }]
}
24 changes: 24 additions & 0 deletions .vscode/settings.json
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"
}
}
632 changes: 632 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions README.md
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
53 changes: 53 additions & 0 deletions package.json
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"
}
}
Loading

0 comments on commit 0bcaec4

Please sign in to comment.