├── .editorconfig
├── .github
├── FUNDING.yml
└── workflows
│ └── release.yml
├── .gitignore
├── LICENSE
├── README.md
├── manifest.json
├── package.json
├── rollup.config.js
├── src
├── main.ts
└── ui
│ ├── commandSuggester.ts
│ ├── iconPicker.ts
│ ├── icons.ts
│ └── settingsTab.ts
├── styles.css
├── tsconfig.json
├── versions.json
└── yarn.lock
/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig helps developers define and maintain consistent
2 | # coding styles between different editors and IDEs
3 | # editorconfig.org
4 |
5 | root = true
6 |
7 | [*]
8 |
9 | # Change these settings to your own preference
10 | indent_style = tab
11 | indent_size = 4
12 |
13 | # We recommend you to keep these unchanged
14 | end_of_line = lf
15 | charset = utf-8
16 | trim_trailing_whitespace = true
17 | insert_final_newline = true
18 |
19 | [*.md]
20 | trim_trailing_whitespace = false
21 |
22 | [*.yml]
23 | indent_style = space
24 | indent_size = 2
25 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: ['phibr0']
2 | custom: ['https://www.buymeacoffee.com/phibr0']
3 |
--------------------------------------------------------------------------------
/.github/workflows/release.yml:
--------------------------------------------------------------------------------
1 | name: Release Obsidian Plugin
2 | on:
3 | push:
4 | # Sequence of patterns matched against refs/tags
5 | tags:
6 | - '*' # Push events to matching any tag format, i.e. 1.0, 20.15.10
7 | jobs:
8 | build:
9 | runs-on: ubuntu-latest
10 | steps:
11 | - uses: actions/checkout@v2
12 | with:
13 | fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
14 | - name: Use Node.js
15 | uses: actions/setup-node@v1
16 | with:
17 | node-version: '14.x' # You might need to adjust this value to your own version
18 | # Get the version number and put it in a variable
19 | - name: Get Version
20 | id: version
21 | run: |
22 | echo "::set-output name=tag::$(git describe --abbrev=0)"
23 | # Build the plugin
24 | - name: Build
25 | id: build
26 | run: |
27 | npm install
28 | npm run build --if-present
29 | # Package the required files into a zip
30 | - name: Package
31 | run: |
32 | mkdir ${{ github.event.repository.name }}
33 | cp main.js manifest.json styles.css README.md ${{ github.event.repository.name }}
34 | zip -r ${{ github.event.repository.name }}.zip ${{ github.event.repository.name }}
35 | # Create the release on github
36 | - name: Create Release
37 | id: create_release
38 | uses: actions/create-release@v1
39 | env:
40 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41 | VERSION: ${{ github.ref }}
42 | with:
43 | tag_name: ${{ github.ref }}
44 | release_name: ${{ github.ref }}
45 | draft: false
46 | prerelease: false
47 | # Upload the packaged release file
48 | - name: Upload zip file
49 | id: upload-zip
50 | uses: actions/upload-release-asset@v1
51 | env:
52 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53 | with:
54 | upload_url: ${{ steps.create_release.outputs.upload_url }}
55 | asset_path: ./${{ github.event.repository.name }}.zip
56 | asset_name: ${{ github.event.repository.name }}.zip
57 | asset_content_type: application/zip
58 | # Upload the main.js
59 | - name: Upload main.js
60 | id: upload-main
61 | uses: actions/upload-release-asset@v1
62 | env:
63 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64 | with:
65 | upload_url: ${{ steps.create_release.outputs.upload_url }}
66 | asset_path: ./main.js
67 | asset_name: main.js
68 | asset_content_type: text/javascript
69 | # Upload the manifest.json
70 | - name: Upload manifest.json
71 | id: upload-manifest
72 | uses: actions/upload-release-asset@v1
73 | env:
74 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75 | with:
76 | upload_url: ${{ steps.create_release.outputs.upload_url }}
77 | asset_path: ./manifest.json
78 | asset_name: manifest.json
79 | asset_content_type: application/json
80 | # Upload the style.css
81 | - name: Upload styles.css
82 | id: upload-css
83 | uses: actions/upload-release-asset@v1
84 | env:
85 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86 | with:
87 | upload_url: ${{ steps.create_release.outputs.upload_url }}
88 | asset_path: ./styles.css
89 | asset_name: styles.css
90 | asset_content_type: text/css
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Intellij
2 | *.iml
3 | .idea
4 |
5 | # npm
6 | node_modules
7 | package-lock.json
8 |
9 | # build
10 | main.js
11 | *.js.map
12 |
13 | # obsidian
14 | data.json
15 | .hotreload
16 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Phillip
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # This Plugin is now archived. [Commander](https://github.com/phibr0/obsidian-commander) is it's successor!
2 |
3 | # Obsidian Customizable Sidebar Plugin [](https://github.com/phibr0/obsidian-customizable-sidebar/releases) 
4 |
5 | This plugin allows you to add any command, including those of plugins, to the sidebar and assign custom icons to them.
6 |
7 | ## Custom Icons
8 |
9 | If the command doesn't yet have any icon, you can select from a range of icons, including Obsidian's internal icons and all Feather Icons.
10 |
11 | ## How to install
12 |
13 | 1. Go to **Community Plugins** in your [Obsidian](https://www.obsidian.md) settings and **disable** Safe Mode
14 | 2. Click on **Browse** and search for „Customizable Sidebar“
15 | 3. Click install
16 | 4. Toggle the plugin **on** in the **Community Plugins** tab
17 |
18 | ## Support me
19 |
20 | If you find this plugin helpful, consider supporting me:
21 |
22 |
23 |
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "customizable-sidebar",
3 | "name": "Customizable Sidebar",
4 | "version": "2.2.1",
5 | "minAppVersion": "0.12.11",
6 | "description": "This Plugin allows to add any Command to Obsidian's Sidebar Ribbon.",
7 | "author": "phibr0",
8 | "authorUrl": "https://github.com/phibr0/",
9 | "isDesktopOnly": false
10 | }
11 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "obsidian-sample-plugin",
3 | "version": "0.12.0",
4 | "description": "This is a sample plugin for Obsidian (https://obsidian.md)",
5 | "main": "main.js",
6 | "scripts": {
7 | "dev": "rollup --config rollup.config.js -w",
8 | "build": "rollup --config rollup.config.js --environment BUILD:production"
9 | },
10 | "keywords": [],
11 | "author": "",
12 | "license": "MIT",
13 | "devDependencies": {
14 | "@rollup/plugin-commonjs": "^18.0.0",
15 | "@rollup/plugin-node-resolve": "^11.2.1",
16 | "@rollup/plugin-typescript": "^8.2.1",
17 | "@types/feather-icons": "^4.7.0",
18 | "@types/node": "^14.14.37",
19 | "obsidian": "^0.12.0",
20 | "rollup": "^2.32.1",
21 | "tslib": "^2.2.0",
22 | "typescript": "^4.2.4"
23 | },
24 | "dependencies": {
25 | "feather-icons": "^4.28.0"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/rollup.config.js:
--------------------------------------------------------------------------------
1 | import typescript from '@rollup/plugin-typescript';
2 | import {nodeResolve} from '@rollup/plugin-node-resolve';
3 | import commonjs from '@rollup/plugin-commonjs';
4 |
5 | const isProd = (process.env.BUILD === 'production');
6 |
7 | const banner =
8 | `/*
9 | THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
10 | if you want to view the source visit the plugins github repository
11 | */
12 | `;
13 |
14 | export default {
15 | input: 'src/main.ts',
16 | output: {
17 | dir: '.',
18 | sourcemap: 'inline',
19 | sourcemapExcludeSources: isProd,
20 | format: 'cjs',
21 | exports: 'default',
22 | banner,
23 | },
24 | external: ['obsidian'],
25 | plugins: [
26 | typescript(),
27 | nodeResolve({browser: true}),
28 | commonjs(),
29 | ]
30 | };
--------------------------------------------------------------------------------
/src/main.ts:
--------------------------------------------------------------------------------
1 | import { Platform, Plugin, setIcon } from 'obsidian';
2 | import { addFeatherIcons } from './ui/icons';
3 | import CustomSidebarSettingsTab, { CustomSidebarSettings, DEFAULT_SETTINGS } from './ui/settingsTab';
4 |
5 | class PinSidebarSupport {
6 | pinLeft?: HTMLElement;
7 | pinRight?: HTMLElement;
8 | }
9 |
10 | export default class CustomSidebarPlugin extends Plugin {
11 | settings: CustomSidebarSettings;
12 | pinSidebarSupport?: PinSidebarSupport;
13 | iconList: string[] = ["any-key", "audio-file", "blocks", "bold-glyph", "bracket-glyph", "broken-link", "bullet-list", "bullet-list-glyph", "calendar-with-checkmark", "check-in-circle", "check-small", "checkbox-glyph", "checkmark", "clock", "cloud", "code-glyph", "create-new", "cross", "cross-in-box", "crossed-star", "csv", "deleteColumn", "deleteRow", "dice", "document", "documents", "dot-network", "double-down-arrow-glyph", "double-up-arrow-glyph", "down-arrow-with-tail", "down-chevron-glyph", "enter", "exit-fullscreen", "expand-vertically", "filled-pin", "folder", "formula", "forward-arrow", "fullscreen", "gear", "go-to-file", "hashtag", "heading-glyph", "help", "highlight-glyph", "horizontal-split", "image-file", "image-glyph", "indent-glyph", "info", "insertColumn", "insertRow", "install", "italic-glyph", "keyboard-glyph", "languages", "left-arrow", "left-arrow-with-tail", "left-chevron-glyph", "lines-of-text", "link", "link-glyph", "logo-crystal", "magnifying-glass", "microphone", "microphone-filled", "minus-with-circle", "moveColumnLeft", "moveColumnRight", "moveRowDown", "moveRowUp", "note-glyph", "number-list-glyph", "open-vault", "pane-layout", "paper-plane", "paused", "pdf-file", "pencil", "percent-sign-glyph", "pin", "plus-with-circle", "popup-open", "presentation", "price-tag-glyph", "quote-glyph", "redo-glyph", "reset", "right-arrow", "right-arrow-with-tail", "right-chevron-glyph", "right-triangle", "run-command", "search", "sheets-in-box", "sortAsc", "sortDesc", "spreadsheet", "stacked-levels", "star", "star-list", "strikethrough-glyph", "switch", "sync", "sync-small", "tag-glyph", "three-horizontal-bars", "trash", "undo-glyph", "unindent-glyph", "up-and-down-arrows", "up-arrow-with-tail", "up-chevron-glyph", "uppercase-lowercase-a", "vault", "vertical-split", "vertical-three-dots", "wrench-screwdriver-glyph"];
14 |
15 | async onload() {
16 | console.log('loading CustomSidebarPlugin %s', this.manifest.version);
17 |
18 | await this.loadSettings();
19 |
20 | this.addSettingTab(new CustomSidebarSettingsTab(this.app, this));
21 |
22 | addFeatherIcons(this.iconList);
23 |
24 | this.settings.sidebarCommands.forEach(c => {
25 | this.addRibbonIcon(c.icon, c.name, () => {
26 | //@ts-ignore
27 | this.app.commands.executeCommandById(c.id);
28 | });
29 | });
30 |
31 | this.addExtraCommands();
32 |
33 | this.app.workspace.onLayoutReady(() => {
34 | this.hideCommands();
35 | this.sidebarPins();
36 | });
37 | }
38 |
39 | onunload() {
40 | console.log('unloading plugin');
41 | }
42 |
43 | async loadSettings() {
44 | this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());
45 | }
46 |
47 | async saveSettings() {
48 | await this.saveData(this.settings);
49 | }
50 |
51 | addExtraCommands(){
52 | this.addCommand({
53 | id: "theme-toggle",
54 | name: "Toggle Dark/Light Mode",
55 | //@ts-ignore
56 | icon: "feather-eye",
57 | callback: () => {
58 | //@ts-ignore
59 | this.app.getTheme() === "obsidian"
60 | //@ts-ignore
61 | ? this.app.commands.executeCommandById("theme:use-light")
62 | //@ts-ignore
63 | : this.app.commands.executeCommandById("theme:use-dark");
64 | }
65 | });
66 |
67 | this.addCommand({
68 | id: "close-left-sidebar",
69 | name: "Close left Sidebar",
70 | icon: "feather-minimize",
71 | callback: () => {
72 | //@ts-ignore
73 | if(!this.app.workspace.leftRibbon.containerEl.hasClass("is-collapsed")){
74 | //@ts-ignore
75 | this.app.workspace.leftRibbon.collapseButtonEl.click();
76 | }
77 | }
78 | });
79 |
80 | this.addCommand({
81 | id: "open-left-sidebar",
82 | name: "Open left Sidebar",
83 | icon: "feather-maximize",
84 | callback: () => {
85 | //@ts-ignore
86 | if(this.app.workspace.leftRibbon.containerEl.hasClass("is-collapsed")){
87 | //@ts-ignore
88 | this.app.workspace.leftRibbon.collapseButtonEl.click();
89 | }
90 | }
91 | });
92 |
93 | this.addCommand({
94 | id: "close-right-sidebar",
95 | name: "Close right Sidebar",
96 | icon: "feather-minimize",
97 | callback: () => {
98 | //@ts-ignore
99 | if(!this.app.workspace.rightRibbon.containerEl.hasClass("is-collapsed")){
100 | //@ts-ignore
101 | this.app.workspace.rightRibbon.collapseButtonEl.click();
102 | }
103 | }
104 | });
105 |
106 | this.addCommand({
107 | id: "open-right-sidebar",
108 | name: "Open right Sidebar",
109 | icon: "feather-maximize",
110 | callback: () => {
111 | //@ts-ignore
112 | if(this.app.workspace.rightRibbon.containerEl.hasClass("is-collapsed")){
113 | //@ts-ignore
114 | this.app.workspace.rightRibbon.collapseButtonEl.click();
115 | }
116 | }
117 | });
118 | }
119 |
120 | hideCommands() {
121 | //@ts-ignore
122 | const children: HTMLCollection = this.app.workspace.leftRibbon.ribbonActionsEl.children;
123 | for (let i = 0; i < children.length; i++) {
124 | if(this.settings.hiddenCommands.contains(children.item(i).getAttribute("aria-label"))) {
125 | (children.item(i) as HTMLElement).style.display = "none";
126 | }
127 | }
128 | }
129 |
130 | sidebarPins() {
131 | if ( Platform.isMobile) {
132 | // don't do any of this if we're on mobile
133 | return;
134 | }
135 | if (this.settings.pinSidebar === undefined && this.pinSidebarSupport) {
136 | // clean up any sidebar pins & related classes if present
137 |
138 | const leftParent = this.pinSidebarSupport.pinLeft.parentElement;
139 | leftParent.removeChild(this.pinSidebarSupport.pinLeft);
140 | delete this.pinSidebarSupport.pinLeft;
141 |
142 | const rightParent = this.pinSidebarSupport.pinRight.parentElement;
143 | rightParent.removeChild(this.pinSidebarSupport.pinRight);
144 | delete this.pinSidebarSupport.pinRight;
145 |
146 | this.getSidebarContainer(true).removeClass("is-pinned");
147 | this.getSidebarContainer(true).removeClass("is-floating");
148 |
149 | this.getSidebarContainer(false).removeClass("is-pinned");
150 | this.getSidebarContainer(false).removeClass("is-floating");
151 |
152 | } else if (this.settings.pinSidebar) {
153 | // create sidebar pin buttons & related classes
154 |
155 | if ( this.pinSidebarSupport === undefined ) {
156 | // Commands are added once (not removed?)
157 | this.addCommand({
158 | id: "pin-left-sidebar",
159 | name: "Toggle pin left Sidebar",
160 | icon: "pin",
161 | callback: async () => this.toggleLeftSidebar()
162 | });
163 |
164 | this.addCommand({
165 | id: "pin-right-sidebar",
166 | name: "Toggle pin right Sidebar",
167 | icon: "pin",
168 | callback: async () => this.toggleRightSidebar()
169 | });
170 | }
171 |
172 | //@ts-ignore
173 | const leftParent: HTMLElement = this.app.workspace.leftRibbon.containerEl;
174 | let pinLeft = leftParent.children.namedItem("left-pin-sidebar") as HTMLElement;
175 | if (pinLeft == null) {
176 | pinLeft = leftParent.createDiv({
177 | cls: "pin-sidebar pin-left-sidebar",
178 | attr: {
179 | name: "left-pin-sidebar"
180 | }});
181 | pinLeft.addEventListener("click", async (e) => {
182 | this.toggleLeftSidebar();
183 | return e.preventDefault();
184 | });
185 | leftParent.insertBefore(pinLeft, leftParent.firstChild);
186 | }
187 |
188 | //@ts-ignore
189 | const rightParent: HTMLElement = this.app.workspace.rightRibbon.containerEl;
190 | let pinRight = rightParent.children.namedItem("right-pin-sidebar") as HTMLElement;
191 | if ( pinRight == null ) {
192 | pinRight = rightParent.createDiv({
193 | cls: "pin-sidebar pin-right-sidebar",
194 | attr: {
195 | name: "right-pin-sidebar",
196 | }});
197 | pinRight.addEventListener("click", async (e) => {
198 | this.toggleRightSidebar();
199 | return e.preventDefault();
200 | });
201 | rightParent.insertBefore(pinRight, rightParent.firstChild);
202 | }
203 |
204 | // Save elements for reference/toggle
205 | this.pinSidebarSupport = {
206 | pinLeft,
207 | pinRight
208 | };
209 |
210 | this.setAttributes(pinLeft,
211 | this.getSidebarContainer(true),
212 | this.settings.pinSidebar.left === undefined ? true : this.settings.pinSidebar.left);
213 |
214 | this.setAttributes(pinRight,
215 | this.getSidebarContainer(false),
216 | this.settings.pinSidebar.right === undefined ? true : this.settings.pinSidebar.right);
217 | }
218 | }
219 |
220 | async toggleLeftSidebar() {
221 | if ( this.settings.pinSidebar && this.pinSidebarSupport ) {
222 | this.settings.pinSidebar.left = ! this.settings.pinSidebar.left;
223 | this.setAttributes(this.pinSidebarSupport.pinLeft,
224 | this.getSidebarContainer(true),
225 | this.settings.pinSidebar.left);
226 | await this.saveSettings();
227 | }
228 | }
229 |
230 | async toggleRightSidebar() {
231 | if ( this.settings.pinSidebar && this.pinSidebarSupport ) {
232 | this.settings.pinSidebar.right = ! this.settings.pinSidebar.right;
233 | this.setAttributes(this.pinSidebarSupport.pinRight,
234 | this.getSidebarContainer(false),
235 | this.settings.pinSidebar.right);
236 | await this.saveSettings();
237 | }
238 | }
239 |
240 | setAttributes(pin: HTMLElement, sidebar: HTMLElement, value: boolean) {
241 | if ( value ) {
242 | setIcon(pin, "filled-pin");
243 |
244 | pin.addClass("is-pinned");
245 | sidebar.addClass("is-pinned");
246 |
247 | pin.removeClass("is-floating");
248 | sidebar.removeClass("is-floating");
249 | } else {
250 | setIcon(pin, "pin");
251 |
252 | pin.removeClass("is-pinned");
253 | sidebar.removeClass("is-pinned");
254 |
255 | pin.addClass("is-floating");
256 | sidebar.addClass("is-floating");
257 | }
258 | }
259 |
260 | getSidebarContainer(leftSplit: boolean) {
261 | if ( leftSplit ) {
262 | //@ts-ignore
263 | return this.app.workspace.leftSplit.containerEl;
264 | }
265 | //@ts-ignore
266 | return this.app.workspace.rightSplit.containerEl;
267 | }
268 | }
269 |
--------------------------------------------------------------------------------
/src/ui/commandSuggester.ts:
--------------------------------------------------------------------------------
1 | import { FuzzySuggestModal, Command } from "obsidian";
2 | import CustomSidebarPlugin from "src/main";
3 | import IconPicker from "./iconPicker";
4 |
5 | export default class CommandSuggester extends FuzzySuggestModal {
6 |
7 | constructor(private plugin: CustomSidebarPlugin) {
8 | super(plugin.app);
9 | }
10 |
11 | getItems(): Command[] {
12 | //@ts-ignore
13 | return this.app.commands.listCommands();
14 | }
15 |
16 | getItemText(item: Command): string {
17 | return item.name;
18 | }
19 |
20 | async onChooseItem(item: Command, evt: MouseEvent | KeyboardEvent): Promise {
21 | if (item.icon) {
22 | this.plugin.addRibbonIcon(item.icon ?? "", item.name, () => {
23 | //@ts-ignore
24 | this.app.commands.executeCommandById(item.id);
25 | })
26 | this.plugin.settings.sidebarCommands.push(item);
27 | await this.plugin.saveSettings();
28 | setTimeout(() => {
29 | dispatchEvent(new Event("CS-addedCommand"));
30 | }, 100);
31 | } else {
32 | new IconPicker(this.plugin, item).open()
33 | }
34 | }
35 |
36 | }
--------------------------------------------------------------------------------
/src/ui/iconPicker.ts:
--------------------------------------------------------------------------------
1 | import { FuzzySuggestModal, Command, FuzzyMatch, setIcon, Notice } from "obsidian";
2 | import CustomSidebarPlugin from "src/main";
3 |
4 | export default class IconPicker extends FuzzySuggestModal{
5 | plugin: CustomSidebarPlugin;
6 | command: Command;
7 | editMode: boolean;
8 |
9 | constructor(plugin: CustomSidebarPlugin, command: Command, editMode = false) {
10 | super(plugin.app);
11 | this.plugin = plugin;
12 | this.command = command;
13 | this.editMode = editMode;
14 | this.setPlaceholder("Pick an icon");
15 | }
16 |
17 | private cap(string: string): string {
18 | const words = string.split(" ");
19 |
20 | return words.map((word) => {
21 | return word[0].toUpperCase() + word.substring(1);
22 | }).join(" ");
23 | }
24 |
25 | getItems(): string[] {
26 | return this.plugin.iconList;
27 | }
28 |
29 | getItemText(item: string): string {
30 | return this.cap(item.replace("feather-", "").replace(/-/ig, " "));
31 | }
32 |
33 | renderSuggestion(item: FuzzyMatch, el: HTMLElement): void {
34 | el.addClass("CS-icon-container");
35 | const div = createDiv({ cls: "CS-icon" });
36 | el.appendChild(div);
37 | setIcon(div, item.item);
38 | super.renderSuggestion(item, el);
39 | }
40 |
41 | async onChooseItem(item: string): Promise {
42 | this.command.icon = item;
43 |
44 | if (!this.editMode) {
45 | this.plugin.addRibbonIcon(item, this.command.name, () => {
46 | //@ts-ignore
47 | this.app.commands.executeCommandById(this.command.id);
48 | })
49 | this.plugin.settings.sidebarCommands.push(this.command);
50 | } else {
51 | new Notice("You will need to restart Obsidian for the changes to take effect.")
52 | }
53 |
54 | await this.plugin.saveSettings();
55 |
56 | setTimeout(() => {
57 | dispatchEvent(new Event("CS-addedCommand"));
58 | }, 100);
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/src/ui/icons.ts:
--------------------------------------------------------------------------------
1 | import * as feather from "feather-icons";
2 | import { addIcon } from "obsidian";
3 |
4 | export function addFeatherIcons(iconList: string[]) {
5 | Object.values(feather.icons).forEach((i) => {
6 | const svg = i.toSvg({viewBox: "0 0 24 24", width: "100", height: "100"});
7 | //Remove the svg tag: svg.match(/(?<=>).*(?=<\/svg>)/).first()
8 | addIcon("feather-" + i.name, svg);
9 | iconList.push("feather-" + i.name);
10 | });
11 | }
--------------------------------------------------------------------------------
/src/ui/settingsTab.ts:
--------------------------------------------------------------------------------
1 | import { PluginSettingTab, App, Setting, setIcon, Command, Notice } from "obsidian";
2 | import CustomSidebarPlugin from "src/main";
3 | import CommandSuggester from "./commandSuggester";
4 | import IconPicker from "./iconPicker";
5 |
6 | export interface CustomSidebarSettings {
7 | sidebarCommands: Command[];
8 | hiddenCommands: string[];
9 | pinSidebar?: {
10 | left?: boolean;
11 | right?: boolean;
12 | }
13 | }
14 |
15 | export const DEFAULT_SETTINGS: CustomSidebarSettings = {
16 | sidebarCommands: [],
17 | hiddenCommands: [],
18 | }
19 |
20 | export default class CustomSidebarSettingsTab extends PluginSettingTab {
21 | plugin: CustomSidebarPlugin;
22 |
23 | constructor(app: App, plugin: CustomSidebarPlugin) {
24 | super(app, plugin);
25 | this.plugin = plugin;
26 | addEventListener("CS-addedCommand", () => {
27 | this.display();
28 | });
29 | }
30 |
31 | display(): void {
32 | let { containerEl } = this;
33 |
34 | containerEl.empty();
35 |
36 | containerEl.createEl('h2', { text: 'Customizable Sidebar Settings' });
37 |
38 | new Setting(containerEl)
39 | .setName("Add Command to Sidebar")
40 | .setDesc("Add a new command to the left Sidebar Ribbon")
41 | .addButton((bt) => {
42 | bt.setButtonText("Add Command")
43 | .onClick(() => {
44 | new CommandSuggester(this.plugin).open();
45 | });
46 | });
47 |
48 | this.plugin.settings.sidebarCommands.forEach((c, index) => {
49 | const iconDiv = createDiv({ cls: "CS-settings-icon" });
50 | setIcon(iconDiv, c.icon, 20);
51 | const setting = new Setting(containerEl)
52 | .setName(c.name);
53 |
54 | if (index > 0) {
55 | setting.addExtraButton(bt => {
56 | bt.setIcon("up-arrow-with-tail")
57 | .setTooltip("Move up")
58 | .onClick(async () => await this.moveCommand(c, 'up'));
59 | })
60 | }
61 | if (index < this.plugin.settings.sidebarCommands.length - 1) {
62 | setting.addExtraButton(bt => {
63 | bt.setIcon("down-arrow-with-tail")
64 | .setTooltip("Move down")
65 | .onClick(async () => await this.moveCommand(c, 'down'));
66 | })
67 | }
68 | setting
69 | .addExtraButton(bt => {
70 | bt.setIcon("trash")
71 | .setTooltip("Remove Command")
72 | .onClick(async () => {
73 | this.plugin.settings.sidebarCommands.remove(c);
74 | await this.plugin.saveSettings();
75 | this.display();
76 | const ribbonButton = Array.from(this.leftRibbonPanel.children)
77 | .find((btn) => c.name === btn.getAttribute('aria-label'))
78 | this.leftRibbonPanel.removeChild(ribbonButton);
79 | })
80 | })
81 | .addExtraButton(bt => {
82 | bt.setIcon("gear")
83 | .setTooltip("Edit Icon")
84 | .onClick(() => {
85 | new IconPicker(this.plugin, c, true).open();
86 | })
87 | });
88 | setting.nameEl.prepend(iconDiv);
89 | setting.nameEl.addClass("CS-flex");
90 | });
91 |
92 | //@ts-ignore
93 | const children: HTMLCollection = this.app.workspace.leftRibbon.ribbonActionsEl.children;
94 | for (let i = 0; i < children.length; i++) {
95 | if (!this.plugin.settings.sidebarCommands.contains(this.plugin.settings.sidebarCommands.find(c => c.name === (children.item(i) as HTMLElement).getAttribute("aria-label")))) {
96 | new Setting(containerEl)
97 | .setName("Hide " + (children.item(i) as HTMLElement).getAttribute("aria-label") + "?")
98 | .addToggle(cb => {
99 | cb.setValue((children.item(i) as HTMLElement).style.display === "none")
100 | cb.onChange(async value => {
101 | if(value === true) {
102 | (children.item(i) as HTMLElement).style.display = "none";
103 | this.plugin.settings.hiddenCommands.push((children.item(i) as HTMLElement).getAttribute("aria-label"));
104 | await this.plugin.saveSettings();
105 | } else {
106 | (children.item(i) as HTMLElement).style.display = "flex";
107 | this.plugin.settings.hiddenCommands.remove((children.item(i) as HTMLElement).getAttribute("aria-label"));
108 | await this.plugin.saveSettings();
109 | }
110 | });
111 | });
112 | }
113 | }
114 |
115 | new Setting(containerEl)
116 | .setName("Desktop only: Support floating sidebars")
117 | .setDesc("Change the sidebar behavior to match mobile: they will open above content panes unless pinned.")
118 | .addToggle(toggle => {
119 | toggle.setValue(this.plugin.settings.pinSidebar !== undefined);
120 | toggle.onChange(async value => {
121 | if ( value ) {
122 | // start with default pinned/open
123 | this.plugin.settings.pinSidebar = {
124 | right: true,
125 | left: true
126 | };
127 | } else {
128 | delete this.plugin.settings.pinSidebar;
129 | }
130 | this.plugin.sidebarPins();
131 | await this.plugin.saveSettings();
132 | });
133 | });
134 |
135 | new Setting(containerEl)
136 | .setName('Donate')
137 | .setDesc('If you like this plugin, consider donating to support continued development:')
138 | .setClass("AT-extra")
139 | .addButton((bt) => {
140 | bt.buttonEl.outerHTML = `
`;
141 | });
142 |
143 | }
144 |
145 | private get leftRibbonPanel(): HTMLElement {
146 | // @ts-ignore `ribbonActionsEl` is not defined in api
147 | return this.app.workspace.leftRibbon.ribbonActionsEl as HTMLElement;
148 | }
149 |
150 | private async moveCommand(command: Command, direction: 'up' | 'down') {
151 | // Move command in settings
152 | const commands = this.plugin.settings.sidebarCommands;
153 | const index = commands.indexOf(command);
154 | if (direction === 'up') {
155 | commands.splice(index - 1, 0, commands.splice(index, 1)[0]);
156 | } else {
157 | commands.splice(index + 1, 0, commands.splice(index, 1)[0]);
158 | }
159 | await this.plugin.saveSettings();
160 | this.display();
161 |
162 | // Move command button in left ribbon
163 | const ribbonButton = Array.from(this.leftRibbonPanel.children)
164 | .find((btn) => command.name === btn.getAttribute('aria-label'));
165 | if (direction === 'up') {
166 | ribbonButton.previousSibling.before(ribbonButton);
167 | } else {
168 | ribbonButton.nextSibling.after(ribbonButton);
169 | }
170 | }
171 | }
172 |
--------------------------------------------------------------------------------
/styles.css:
--------------------------------------------------------------------------------
1 | /*Icon Picker*/
2 | .CS-icon {
3 | transform: translateY(3px);
4 | margin-right: 8px;
5 | }
6 |
7 | .CS-icon-container{
8 | display: flex;
9 | }
10 |
11 | .CS-settings-icon {
12 | height: 20px;
13 | margin-right: 0.5rem;
14 | transform: translateY(2px);
15 | }
16 |
17 | .CS-flex {
18 | display: flex;
19 | }
20 |
21 | a[href="https://www.buymeacoffee.com/phibr0"] > img {
22 | height: 2.2em;
23 | }
24 |
25 | a[href="https://www.buymeacoffee.com/phibr0"]{
26 | transform: translate(0, 5%);
27 | }
28 |
29 | /* .CS-ribbon-visible .workspace-drawer.mod-left {
30 | display: flex !important;
31 | min-width: auto;
32 | width: var(--workspace-drawer-ribbon-width) !important;
33 | margin-top: 50px;
34 | } */
35 |
36 | body.is-mobile .pin-sidebar {
37 | display: none;
38 | }
39 | body:not(.is-mobile) .pin-sidebar {
40 | padding: 8px 6px;
41 | cursor: pointer;
42 | }
43 | body:not(.is-mobile) .pin-sidebar.is-pinned {
44 | color: var(--interactive-accent);
45 | }
46 | body:not(.is-mobile) .mod-left-split.is-floating,
47 | body:not(.is-mobile) .mod-right-split.is-floating {
48 | position: absolute;
49 | z-index: var(--layer-sidedock);
50 | }
51 | /** Based on ribbon width of default theme */
52 | body:not(.is-mobile) .mod-left-split.is-floating {
53 | left: 30px;
54 | }
55 | body:not(.is-mobile) .mod-right-split.is-floating {
56 | right: 30px;
57 | }
58 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "inlineSourceMap": true,
5 | "inlineSources": true,
6 | "module": "ESNext",
7 | "target": "es6",
8 | "allowJs": true,
9 | "noImplicitAny": true,
10 | "moduleResolution": "node",
11 | "importHelpers": true,
12 | "lib": [
13 | "dom",
14 | "es5",
15 | "scripthost",
16 | "es2015"
17 | ]
18 | },
19 | "include": [
20 | "**/*.ts"
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/versions.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | "@rollup/plugin-commonjs@^18.0.0":
6 | version "18.1.0"
7 | resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-18.1.0.tgz#5a760d757af168a50727c0ae080251fbfcc5eb02"
8 | integrity sha512-h3e6T9rUxVMAQswpDIobfUHn/doMzM9sgkMrsMWCFLmB84PSoC8mV8tOloAJjSRwdqhXBqstlX2BwBpHJvbhxg==
9 | dependencies:
10 | "@rollup/pluginutils" "^3.1.0"
11 | commondir "^1.0.1"
12 | estree-walker "^2.0.1"
13 | glob "^7.1.6"
14 | is-reference "^1.2.1"
15 | magic-string "^0.25.7"
16 | resolve "^1.17.0"
17 |
18 | "@rollup/plugin-node-resolve@^11.2.1":
19 | version "11.2.1"
20 | resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz#82aa59397a29cd4e13248b106e6a4a1880362a60"
21 | integrity sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==
22 | dependencies:
23 | "@rollup/pluginutils" "^3.1.0"
24 | "@types/resolve" "1.17.1"
25 | builtin-modules "^3.1.0"
26 | deepmerge "^4.2.2"
27 | is-module "^1.0.0"
28 | resolve "^1.19.0"
29 |
30 | "@rollup/plugin-typescript@^8.2.1":
31 | version "8.3.0"
32 | resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-8.3.0.tgz#bc1077fa5897b980fc27e376c4e377882c63e68b"
33 | integrity sha512-I5FpSvLbtAdwJ+naznv+B4sjXZUcIvLLceYpITAn7wAP8W0wqc5noLdGIp9HGVntNhRWXctwPYrSSFQxtl0FPA==
34 | dependencies:
35 | "@rollup/pluginutils" "^3.1.0"
36 | resolve "^1.17.0"
37 |
38 | "@rollup/pluginutils@^3.1.0":
39 | version "3.1.0"
40 | resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
41 | integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==
42 | dependencies:
43 | "@types/estree" "0.0.39"
44 | estree-walker "^1.0.1"
45 | picomatch "^2.2.2"
46 |
47 | "@types/codemirror@0.0.108":
48 | version "0.0.108"
49 | resolved "https://registry.yarnpkg.com/@types/codemirror/-/codemirror-0.0.108.tgz#e640422b666bf49251b384c390cdeb2362585bde"
50 | integrity sha512-3FGFcus0P7C2UOGCNUVENqObEb4SFk+S8Dnxq7K6aIsLVs/vDtlangl3PEO0ykaKXyK56swVF6Nho7VsA44uhw==
51 | dependencies:
52 | "@types/tern" "*"
53 |
54 | "@types/estree@*":
55 | version "0.0.50"
56 | resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.50.tgz#1e0caa9364d3fccd2931c3ed96fdbeaa5d4cca83"
57 | integrity sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==
58 |
59 | "@types/estree@0.0.39":
60 | version "0.0.39"
61 | resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
62 | integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==
63 |
64 | "@types/feather-icons@^4.7.0":
65 | version "4.7.0"
66 | resolved "https://registry.yarnpkg.com/@types/feather-icons/-/feather-icons-4.7.0.tgz#ec66bc046bcd1513835f87541ecef54b50c57ec9"
67 | integrity sha512-vflOrmlHMGIGVN4AEl6ErPCNKBLcP1ehEpLqnJkTgf69r5QmJzy7BF1WzbBc8Hqs9KffROPT/JqlSKH4o5vB/w==
68 |
69 | "@types/node@*":
70 | version "17.0.14"
71 | resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.14.tgz#33b9b94f789a8fedd30a68efdbca4dbb06b61f20"
72 | integrity sha512-SbjLmERksKOGzWzPNuW7fJM7fk3YXVTFiZWB/Hs99gwhk+/dnrQRPBQjPW9aO+fi1tAffi9PrwFvsmOKmDTyng==
73 |
74 | "@types/node@^14.14.37":
75 | version "14.18.10"
76 | resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.10.tgz#774f43868964f3cfe4ced1f5417fe15818a4eaea"
77 | integrity sha512-6iihJ/Pp5fsFJ/aEDGyvT4pHGmCpq7ToQ/yf4bl5SbVAvwpspYJ+v3jO7n8UyjhQVHTy+KNszOozDdv+O6sovQ==
78 |
79 | "@types/resolve@1.17.1":
80 | version "1.17.1"
81 | resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.17.1.tgz#3afd6ad8967c77e4376c598a82ddd58f46ec45d6"
82 | integrity sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==
83 | dependencies:
84 | "@types/node" "*"
85 |
86 | "@types/tern@*":
87 | version "0.23.4"
88 | resolved "https://registry.yarnpkg.com/@types/tern/-/tern-0.23.4.tgz#03926eb13dbeaf3ae0d390caf706b2643a0127fb"
89 | integrity sha512-JAUw1iXGO1qaWwEOzxTKJZ/5JxVeON9kvGZ/osgZaJImBnyjyn0cjovPsf6FNLmyGY8Vw9DoXZCMlfMkMwHRWg==
90 | dependencies:
91 | "@types/estree" "*"
92 |
93 | balanced-match@^1.0.0:
94 | version "1.0.2"
95 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
96 | integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
97 |
98 | brace-expansion@^1.1.7:
99 | version "1.1.11"
100 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
101 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
102 | dependencies:
103 | balanced-match "^1.0.0"
104 | concat-map "0.0.1"
105 |
106 | builtin-modules@^3.1.0:
107 | version "3.2.0"
108 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.2.0.tgz#45d5db99e7ee5e6bc4f362e008bf917ab5049887"
109 | integrity sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA==
110 |
111 | classnames@^2.2.5:
112 | version "2.3.1"
113 | resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.3.1.tgz#dfcfa3891e306ec1dad105d0e88f4417b8535e8e"
114 | integrity sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA==
115 |
116 | commondir@^1.0.1:
117 | version "1.0.1"
118 | resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
119 | integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=
120 |
121 | concat-map@0.0.1:
122 | version "0.0.1"
123 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
124 | integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
125 |
126 | core-js@^3.1.3:
127 | version "3.21.0"
128 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.21.0.tgz#f479dbfc3dffb035a0827602dd056839a774aa71"
129 | integrity sha512-YUdI3fFu4TF/2WykQ2xzSiTQdldLB4KVuL9WeAy5XONZYt5Cun/fpQvctoKbCgvPhmzADeesTk/j2Rdx77AcKQ==
130 |
131 | deepmerge@^4.2.2:
132 | version "4.2.2"
133 | resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955"
134 | integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==
135 |
136 | estree-walker@^1.0.1:
137 | version "1.0.1"
138 | resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700"
139 | integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==
140 |
141 | estree-walker@^2.0.1:
142 | version "2.0.2"
143 | resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac"
144 | integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==
145 |
146 | feather-icons@^4.28.0:
147 | version "4.28.0"
148 | resolved "https://registry.yarnpkg.com/feather-icons/-/feather-icons-4.28.0.tgz#e1892a401fe12c4559291770ff6e68b0168e760f"
149 | integrity sha512-gRdqKESXRBUZn6Nl0VBq2wPHKRJgZz7yblrrc2lYsS6odkNFDnA4bqvrlEVRUPjE1tFax+0TdbJKZ31ziJuzjg==
150 | dependencies:
151 | classnames "^2.2.5"
152 | core-js "^3.1.3"
153 |
154 | fs.realpath@^1.0.0:
155 | version "1.0.0"
156 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
157 | integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8=
158 |
159 | fsevents@~2.3.2:
160 | version "2.3.2"
161 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
162 | integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
163 |
164 | function-bind@^1.1.1:
165 | version "1.1.1"
166 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
167 | integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
168 |
169 | glob@^7.1.6:
170 | version "7.2.0"
171 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023"
172 | integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==
173 | dependencies:
174 | fs.realpath "^1.0.0"
175 | inflight "^1.0.4"
176 | inherits "2"
177 | minimatch "^3.0.4"
178 | once "^1.3.0"
179 | path-is-absolute "^1.0.0"
180 |
181 | has@^1.0.3:
182 | version "1.0.3"
183 | resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
184 | integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
185 | dependencies:
186 | function-bind "^1.1.1"
187 |
188 | inflight@^1.0.4:
189 | version "1.0.6"
190 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
191 | integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=
192 | dependencies:
193 | once "^1.3.0"
194 | wrappy "1"
195 |
196 | inherits@2:
197 | version "2.0.4"
198 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
199 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
200 |
201 | is-core-module@^2.8.1:
202 | version "2.8.1"
203 | resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.1.tgz#f59fdfca701d5879d0a6b100a40aa1560ce27211"
204 | integrity sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==
205 | dependencies:
206 | has "^1.0.3"
207 |
208 | is-module@^1.0.0:
209 | version "1.0.0"
210 | resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591"
211 | integrity sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=
212 |
213 | is-reference@^1.2.1:
214 | version "1.2.1"
215 | resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.2.1.tgz#8b2dac0b371f4bc994fdeaba9eb542d03002d0b7"
216 | integrity sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==
217 | dependencies:
218 | "@types/estree" "*"
219 |
220 | magic-string@^0.25.7:
221 | version "0.25.7"
222 | resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"
223 | integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==
224 | dependencies:
225 | sourcemap-codec "^1.4.4"
226 |
227 | minimatch@^3.0.4:
228 | version "3.0.4"
229 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
230 | integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
231 | dependencies:
232 | brace-expansion "^1.1.7"
233 |
234 | moment@2.29.1:
235 | version "2.29.1"
236 | resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
237 | integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==
238 |
239 | obsidian@^0.12.0:
240 | version "0.12.17"
241 | resolved "https://registry.yarnpkg.com/obsidian/-/obsidian-0.12.17.tgz#8efe75310d0e3988cdeccfbb176d3a8ff7b363c7"
242 | integrity sha512-YvCAlRym9D8zNPXt6Ez8QubSTVGoChx6lb58zqI13Dcrz3l1lgUO+pcOGDiD5Qa67nzDZLXo3aV2rqkCCpTvGQ==
243 | dependencies:
244 | "@types/codemirror" "0.0.108"
245 | moment "2.29.1"
246 |
247 | once@^1.3.0:
248 | version "1.4.0"
249 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
250 | integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
251 | dependencies:
252 | wrappy "1"
253 |
254 | path-is-absolute@^1.0.0:
255 | version "1.0.1"
256 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
257 | integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
258 |
259 | path-parse@^1.0.7:
260 | version "1.0.7"
261 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
262 | integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
263 |
264 | picomatch@^2.2.2:
265 | version "2.3.1"
266 | resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
267 | integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
268 |
269 | resolve@^1.17.0, resolve@^1.19.0:
270 | version "1.22.0"
271 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.0.tgz#5e0b8c67c15df57a89bdbabe603a002f21731198"
272 | integrity sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==
273 | dependencies:
274 | is-core-module "^2.8.1"
275 | path-parse "^1.0.7"
276 | supports-preserve-symlinks-flag "^1.0.0"
277 |
278 | rollup@^2.32.1:
279 | version "2.67.0"
280 | resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.67.0.tgz#496de7e641dbe39f681c5a82419cb5013917d406"
281 | integrity sha512-W83AaERwvDiHwHEF/dfAfS3z1Be5wf7n+pO3ZAO5IQadCT2lBTr7WQ2MwZZe+nodbD+n3HtC4OCOAdsOPPcKZQ==
282 | optionalDependencies:
283 | fsevents "~2.3.2"
284 |
285 | sourcemap-codec@^1.4.4:
286 | version "1.4.8"
287 | resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
288 | integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==
289 |
290 | supports-preserve-symlinks-flag@^1.0.0:
291 | version "1.0.0"
292 | resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
293 | integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
294 |
295 | tslib@^2.2.0:
296 | version "2.3.1"
297 | resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
298 | integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
299 |
300 | typescript@^4.2.4:
301 | version "4.5.5"
302 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3"
303 | integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==
304 |
305 | wrappy@1:
306 | version "1.0.2"
307 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
308 | integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
309 |
--------------------------------------------------------------------------------