Skip to content

Commit 0775fc2

Browse files
committed
Initial commit
new file: src/utils.ts
0 parents  commit 0775fc2

29 files changed

+3259
-0
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
indent_style = tab
9+
indent_size = 4
10+
tab_width = 4

.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
2+
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
3+
fi
4+
use flake

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
3+
main.js

.eslintrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"env": { "node": true },
5+
"plugins": [
6+
"@typescript-eslint"
7+
],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended"
12+
],
13+
"parserOptions": {
14+
"sourceType": "module"
15+
},
16+
"rules": {
17+
"no-unused-vars": "off",
18+
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
19+
"@typescript-eslint/ban-ts-comment": "off",
20+
"no-prototype-builtins": "off",
21+
"@typescript-eslint/no-empty-function": "off"
22+
}
23+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Bug Report
2+
description: Report a bug encountered while using the Unseen Files plugin
3+
labels: ["bug"]
4+
body:
5+
- type: textarea
6+
id: problem
7+
attributes:
8+
label: What happened?
9+
validations:
10+
required: true
11+
12+
- type: textarea
13+
id: expected
14+
attributes:
15+
label: What did you expect to happen?
16+
validations:
17+
required: true
18+
19+
- type: textarea
20+
id: repro
21+
attributes:
22+
label: Can you reproduce the bug, if so how? As detailed but minimal as possible.
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: additional
28+
attributes:
29+
label: Other?
30+
31+
- type: input
32+
id: pluginVersion
33+
attributes:
34+
label: Plugin version
35+
description: You can find the version under Settings -> Community plugins -> Installed plugins -> Projects.
36+
validations:
37+
required: true
38+
39+
- type: input
40+
id: obsidianVersion
41+
attributes:
42+
label: Obsidian version
43+
description: You can find the version under Settings -> About -> Current version.
44+
validations:
45+
required: true
46+
47+
- type: dropdown
48+
id: os
49+
attributes:
50+
label: OS
51+
multiple: true
52+
options:
53+
- Windows
54+
- macOS
55+
- Linux
56+
- iOS
57+
- Android
58+
- Other
59+
validations:
60+
required: true
61+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Feature Request
2+
description: Suggest a new feature for the Unseen Files plugin
3+
labels: ["feature"]
4+
body:
5+
- type: textarea
6+
id: feature
7+
attributes:
8+
label: What would you like to be added?
9+
validations:
10+
required: true
11+
12+
- type: textarea
13+
id: rationale
14+
attributes:
15+
label: Why is this needed?
16+
validations:
17+
required: true
18+

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release Obsidian plugin
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Use Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: "18.x"
19+
20+
- name: Build plugin
21+
run: |
22+
npm install
23+
npm run build
24+
25+
- name: Create release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: |
29+
tag="${GITHUB_REF#refs/tags/}"
30+
31+
gh release create "$tag" \
32+
--title="$tag" \
33+
--draft \
34+
main.js manifest.json styles.css

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# vscode
2+
.vscode
3+
4+
# Intellij
5+
*.iml
6+
.idea
7+
8+
# npm
9+
node_modules
10+
11+
# Don't include the compiled main.js file in the repo.
12+
# They should be uploaded to GitHub releases instead.
13+
main.js
14+
15+
# Exclude sourcemaps
16+
*.map
17+
18+
# obsidian
19+
data.json
20+
21+
# Exclude macOS Finder (System Explorer) View States
22+
.DS_Store
23+
.direnv

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tag-version-prefix=""

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
printWidth: 140
2+
tabWidth: 4
3+
useTabs: false
4+
semi: true
5+
singleQuote: false

0 commit comments

Comments
 (0)