Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Test Vault and Fix Unknown Color #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[submodule "supernote-typescript"]
path = supernote-typescript
url = https://github.com/philips/supernote-typescript
# url = https://github.com/philips/supernote-typescript
url = https://github.com/Genei180/supernote-typescript
branch = fix_template_unknown_color_error
1 change: 1 addition & 0 deletions sample-vault/Supernote-Plugin-Demo/.obsidian/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
"hot-reload",
"supernote"
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"properties": false,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false
}
20 changes: 20 additions & 0 deletions sample-vault/Supernote-Plugin-Demo/.obsidian/core-plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
"file-explorer",
"global-search",
"switcher",
"graph",
"backlink",
"canvas",
"outgoing-link",
"tag-pane",
"page-preview",
"daily-notes",
"templates",
"note-composer",
"command-palette",
"editor-status",
"bookmarks",
"outline",
"word-count",
"file-recovery"
]
22 changes: 22 additions & 0 deletions sample-vault/Supernote-Plugin-Demo/.obsidian/graph.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"collapse-filter": true,
"search": "",
"showTags": false,
"showAttachments": false,
"hideUnresolved": false,
"showOrphans": true,
"collapse-color-groups": true,
"colorGroups": [],
"collapse-display": true,
"showArrow": false,
"textFadeMultiplier": 0,
"nodeSizeMultiplier": 1,
"lineSizeMultiplier": 1,
"collapse-forces": true,
"centerStrength": 0.518713248970312,
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
"scale": 1,
"close": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "supernote",
"name": "Unofficial Supernote by Ratta Integration",
"version": "2.2.7",
"minAppVersion": "1.5.12",
"description": "View Supernote notes, generate markdown from note and capture screen mirror.",
"author": "Brandon Philips",
"authorUrl": "https://ifup.org",
"fundingUrl": "https://github.com/philips/supernote-obsidian-plugin/blob/main/README.md#funding",
"isDesktopOnly": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.theme-dark img[alt*="supernote-invert-dark"] {
filter: invert(1);
}

.theme-light img[alt*="supernote-invert-light"] {
filter: invert(1);
}

.theme-dark img.supernote-invert-dark {
filter: invert(1);
}

.theme-light img.supernote-invert-light {
filter: invert(1);
}
149 changes: 149 additions & 0 deletions sample-vault/Supernote-Plugin-Demo/.obsidian/workspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"main": {
"id": "d764dcfa2d4ee56a",
"type": "split",
"children": [
{
"id": "dfa33a31f43bc0c5",
"type": "tabs",
"children": [
{
"id": "31b4aa07827299c6",
"type": "leaf",
"state": {
"type": "empty",
"state": {}
}
}
]
}
],
"direction": "vertical"
},
"left": {
"id": "b48a9d49fc6adc3a",
"type": "split",
"children": [
{
"id": "44c648534f78bf66",
"type": "tabs",
"children": [
{
"id": "d700bf1ff2869514",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical"
}
}
},
{
"id": "f73ea6a80089d0a4",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
}
}
},
{
"id": "6bb79592b49873fe",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {}
}
}
]
}
],
"direction": "horizontal",
"width": 300
},
"right": {
"id": "32be1b571777d251",
"type": "split",
"children": [
{
"id": "c927028db1937294",
"type": "tabs",
"children": [
{
"id": "0c12e16c03c0e379",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "b40eba2355b759bf",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"linksCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "d18b7146c33e3b56",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true
}
}
},
{
"id": "da1a6951a916ea3c",
"type": "leaf",
"state": {
"type": "outline",
"state": {}
}
}
]
}
],
"direction": "horizontal",
"width": 300,
"collapsed": true
},
"left-ribbon": {
"hiddenItems": {
"switcher:Open quick switcher": false,
"graph:Open graph view": false,
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"templates:Insert template": false,
"command-palette:Open command palette": false
}
},
"active": "31b4aa07827299c6",
"lastOpenFiles": [
"Welcome.md",
"Functioning_Note.note",
"Error_Provoking_Note.note",
"Error_Provoking_Note.md",
"MainNote.note"
]
}
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions sample-vault/Supernote-Plugin-Demo/Welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This is your new *vault*.

Make a note of something, [[create a link]], or try [the Importer](https://help.obsidian.md/Plugins/Importer)!

When you're ready, delete this note and make the vault your own.
10 changes: 10 additions & 0 deletions sample-vault/TestInVault.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# Copy the built plugin in to the Sample vault.
# Should be run from the Git Repo Root.

set -euo pipefail

cp main.js manifest.json styles.css \
sample-vault/Supernote-Plugin-Demo/.obsidian/plugins/supernote-obsidian-plugin

touch sample-vault/Supernote-Plugin-Demo/.obsidian/plugins/supernote-obsidian-plugin/.hotreload
2 changes: 1 addition & 1 deletion supernote-typescript
Loading