Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgpearce committed Dec 12, 2023
0 parents commit ce1e16c
Show file tree
Hide file tree
Showing 69 changed files with 8,111 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/out/**
**/node_modules/**
117 changes: 117 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "jsdoc"],
"extends": [
"eslint:recommended",
"plugin:react/all",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"page": true,
"browser": true,
"context": true
},
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"globalReturn": true,
"jsx": true
},
"sourceType": "module"
},
"settings": {"react": {"version": "16.12.0"}},
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-unused-vars": [
2,
{"argsIgnorePattern": "^_.*", "varsIgnorePattern": "^_.*"}
],
"max-len": [2, {"code": 80, "ignorePattern": "^(im|ex)ports?\\W.*"}],
"no-var": 2,
"no-console": 2,
"object-curly-spacing": [2, "never"],
"comma-dangle": [
2,
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"indent": 0,
"no-empty": [2, {"allowEmptyCatch": true}],
"linebreak-style": [2, "unix"],
"space-infix-ops": 2,
"quotes": [2, "single", {"allowTemplateLiterals": true}],
"semi": [2, "always"],
"sort-keys": 0,
"sort-imports": 2,
"no-multiple-empty-lines": [2, {"max": 1}],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/no-multi-comp": [2, {"ignoreStateless": true}],
"react/no-find-dom-node": 0,
"react/no-set-state": 0,
"react/no-unsafe": 2,
"jsx-quotes": [2, "prefer-double"],
"react-hooks/exhaustive-deps": 2,
"react-hooks/rules-of-hooks": 2,
"react/destructuring-assignment": 0,
"react/display-name": 0,
"react/jsx-boolean-value": 0,
"react/jsx-filename-extension": 0,
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/jsx-handler-names": [
2,
{"eventHandlerPrefix": "_handle", "eventHandlerPropPrefix": "on"}
],
"react/jsx-indent": 0,
"react/jsx-indent-props": [2, 2],
"react/jsx-max-depth": [2, {"max": 5}],
"react/jsx-max-props-per-line": [2, {"maximum": 1, "when": "multiline"}],
"react/jsx-newline": 0,
"react/jsx-no-literals": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-sort-props": 0,
"react/require-default-props": 0,
"react/sort-comp": 0,
"react/forbid-component-props": 0,
"react/button-has-type": 0
},
"overrides": [
{
"files": ["src/types/**"],
"extends": ["plugin:jsdoc/recommended"],
"rules": {
"jsdoc/check-tag-names": [
2,
{"definedTags": ["category", "packageDocumentation", "jsx"]}
],
"jsdoc/require-jsdoc": [2, {"contexts": ["any"]}],
"jsdoc/check-examples": [0, {"contexts": ["any"]}],
"jsdoc/require-description": [2, {"contexts": ["any"]}],
"jsdoc/require-returns-check": [0],
"jsdoc/require-param-type": [0],
"jsdoc/require-returns-type": [0]
}
}
]
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
out
dist
dist-ssr
*.local

.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.partykit
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"bracketSpacing": false,
"singleQuote": true,
"trailingComma": "all"
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) James Pearce, 2023-

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
17 changes: 17 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"ignorePaths": [
"*.tsv",
"*.webp",
"*.svg"
],
"words": [
"httponly",
"linebreak",
"outdir",
"proxying",
"samesite",
"seqfaults",
"tinyrooms",
"tsndr"
]
}
Binary file added docs/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tinyrooms.org
4 changes: 4 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<meta
http-equiv="refresh"
content="0; url=https://github.com/tinyplex/tinyrooms"
/>
Loading

0 comments on commit ce1e16c

Please sign in to comment.