Skip to content

Commit 3e49900

Browse files
committed
fix: remove 'quarter' from switcher until it's added to nldates
1 parent 56da2fd commit 3e49900

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

.github/workflows/publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Use Node.js
1919
uses: actions/setup-node@v1
2020
with:
21-
node-version: "14.x"
21+
node-version: "14.x"
2222
- name: Build
2323
id: build
2424
run: |
@@ -77,7 +77,7 @@ jobs:
7777
env:
7878
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7979
with:
80-
upload_url: ${{ steps.create_release.outputs.upload_url }}
80+
upload_url: ${{ steps.create_release.outputs.upload_url }}
8181
asset_path: ./styles.css
8282
asset_name: styles.css
83-
asset_content_type: text/css
83+
asset_content_type: text/css

.gitignore

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
node_modules/
22
dist/
3-
data.json
4-
main.js
53
.vscode/
64
*.code-workspace
75

@@ -14,4 +12,8 @@ main.js
1412
!.yarn/sdks
1513
!.yarn/versions
1614

17-
.env
15+
.env
16+
17+
styles.css
18+
data.json
19+
main.js

src/switcher/switcher.ts

+5-12
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ export class NLDNavigator extends SuggestModal<DateNavigationItem> {
3030

3131
constructor(readonly app: App, readonly plugin: PeriodicNotesPlugin) {
3232
super(app);
33-
// this.inputEl.parentElement.prepend(
34-
// createDiv("periodic-notes-switcher-input-container", (inputContainer) => {
35-
// inputContainer.appendChild(this.inputEl);
36-
// this.granularityLabel = inputContainer.createDiv({
37-
// cls: "mode-indicator",
38-
// text: this.mode,
39-
// });
40-
// })
41-
// );
4233

4334
this.setInstructions(DEFAULT_INSTRUCTIONS);
4435
this.setPlaceholder("Type date to find related notes");
@@ -127,6 +118,7 @@ export class NLDNavigator extends SuggestModal<DateNavigationItem> {
127118
return [
128119
getSuggestion(`${reference} week`, "week"),
129120
getSuggestion(`${reference} month`, "month"),
121+
// getSuggestion(`${reference} quarter`, "quarter"),
130122
getSuggestion(`${reference} year`, "year"),
131123
getSuggestion(`${reference} Sunday`, "day"),
132124
getSuggestion(`${reference} Monday`, "day"),
@@ -171,9 +163,10 @@ export class NLDNavigator extends SuggestModal<DateNavigationItem> {
171163
getSuggestion("this month", "month"),
172164
getSuggestion("last month", "month"),
173165
getSuggestion("next month", "month"),
174-
getSuggestion("this quarter", "quarter"),
175-
getSuggestion("last quarter", "quarter"),
176-
getSuggestion("next quarter", "quarter"),
166+
// TODO - requires adding new parser to NLDates
167+
// getSuggestion("this quarter", "quarter"),
168+
// getSuggestion("last quarter", "quarter"),
169+
// getSuggestion("next quarter", "quarter"),
177170
getSuggestion("this year", "year"),
178171
getSuggestion("last year", "year"),
179172
getSuggestion("next year", "year"),

0 commit comments

Comments
 (0)