added a test vault

This commit is contained in:
Ell 2022-08-21 17:37:20 +02:00
parent 5022385ee1
commit e826e93d27
16 changed files with 3543 additions and 149 deletions

4
.gitignore vendored
View file

@ -1,5 +1,5 @@
# vscode
.vscode
.vscode
# Intellij
*.iml
@ -10,7 +10,7 @@ node_modules
# Don't include the compiled main.js file in the repo.
# They should be uploaded to GitHub releases instead.
main.js
./main.js
# Exclude sourcemaps
*.map

View file

@ -1,6 +1,7 @@
import esbuild from "esbuild";
import process from "process";
import builtins from 'builtin-modules';
import { copy } from 'esbuild-plugin-copy';
const banner = `/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
@ -41,6 +42,14 @@ esbuild.build({
'@codemirror/view',
...builtins
],
plugins: [
copy({
assets: [{
from: ["./manifest.json", "./main.js", "./styles.css"],
to: ["./test-vault/.obsidian/plugins/obsidian-custom-frames/."]
}]
}),
],
format: 'cjs',
watch: !prod,
target: 'es2016',

541
main.js Normal file

File diff suppressed because one or more lines are too long

2385
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -15,7 +15,8 @@
"@types/node": "^16.11.6",
"builtin-modules": "^3.2.0",
"electron": "^13.6.2",
"esbuild": "0.13.12",
"esbuild": "0.14.0",
"esbuild-plugin-copy": "^1.3.0",
"obsidian": "latest",
"tslib": "2.3.1",
"typescript": "4.4.4"

View file

@ -91,4 +91,4 @@ export default class CustomFramesPlugin extends Plugin {
this.app.workspace.revealLeaf(this.app.workspace.getLeavesOfType(name)[0]);
}
}
}
}

View file

@ -44,9 +44,9 @@ div.dwlvNd {
zoomLevel: 1,
forceIframe: false,
customCss: `/* hide the menu bar and the "Keep" text */
html > body > div:nth-child(2) > div:nth-child(2) > div:first-child,
html > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span {
display: none !important;
html > body > div:nth-child(2) > div:nth-child(2) > div:first-child,
html > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span {
display: none !important;
}`
},
"todoist": {
@ -119,4 +119,4 @@ export interface CustomFrameSettings {
export function getIcon(settings: CustomFrameSettings) {
return settings.icon ? `lucide-${settings.icon}` : "documents";
}
}

1
test-vault/.obsidian/app.json vendored Normal file
View file

@ -0,0 +1 @@
{}

1
test-vault/.obsidian/appearance.json vendored Normal file
View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,3 @@
[
"obsidian-custom-frames"
]

19
test-vault/.obsidian/core-plugins.json vendored Normal file
View file

@ -0,0 +1,19 @@
[
"file-explorer",
"global-search",
"switcher",
"graph",
"backlink",
"outgoing-link",
"tag-pane",
"page-preview",
"daily-notes",
"templates",
"note-composer",
"command-palette",
"editor-status",
"starred",
"outline",
"word-count",
"file-recovery"
]

1
test-vault/.obsidian/hotkeys.json vendored Normal file
View file

@ -0,0 +1 @@
{}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,10 @@
{
"id": "obsidian-custom-frames",
"name": "Custom Frames",
"version": "2.4.2",
"minAppVersion": "0.14.5",
"description": "A plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
"author": "Ellpeck",
"authorUrl": "https://ellpeck.de",
"isDesktopOnly": false
}

View file

@ -0,0 +1,31 @@
.custom-frames-view {
padding: 0 !important;
overflow: hidden !important;
}
.custom-frames-view-file {
padding: 0;
overflow: auto;
}
.custom-frames-frame {
width: 100%;
height: 100%;
border: none;
background-color: white;
background-clip: content-box;
}
.custom-frames-add {
margin-left: 10px;
}
.custom-frames-show {
margin-bottom: 18px;
}
.custom-frames-support {
max-width: 50%;
width: 400px;
height: auto;
}

133
test-vault/.obsidian/workspace vendored Normal file
View file

@ -0,0 +1,133 @@
{
"main": {
"id": "c1516e0860f8ca2d",
"type": "split",
"children": [
{
"id": "cbc6da4aa7697308",
"type": "leaf",
"state": {
"type": "custom-frames-obsidian-forum",
"state": {}
}
}
],
"direction": "vertical"
},
"left": {
"id": "f48d3cfe4b95c092",
"type": "split",
"children": [
{
"id": "f1178df345e439d7",
"type": "tabs",
"children": [
{
"id": "1953d881032399d7",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {}
}
},
{
"id": "36f241641b1334c7",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
}
}
},
{
"id": "2b4a59e1687c8b13",
"type": "leaf",
"state": {
"type": "starred",
"state": {}
}
}
]
}
],
"direction": "horizontal",
"width": 300
},
"right": {
"id": "48128f792502a876",
"type": "split",
"children": [
{
"id": "6635b8a61f3363dc",
"type": "tabs",
"children": [
{
"id": "8b8ee33059b392df",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "1a5164ddf50fc39d",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"linksCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "360f0e93e58b9472",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true
}
}
},
{
"id": "edb9a559fde3ae0c",
"type": "leaf",
"state": {
"type": "outline",
"state": {}
}
},
{
"id": "d77c1f6b102072c2",
"type": "leaf",
"state": {
"type": "custom-frames-google-keep",
"state": {}
}
}
],
"currentTab": 4
}
],
"direction": "horizontal",
"width": 388
},
"active": "d77c1f6b102072c2",
"lastOpenFiles": []
}