Skip to content

Commit 6b113fc

Browse files
committed
deleting extra files and altering variable names.
1 parent 3737503 commit 6b113fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+155
-3436
lines changed

LICENSE

Lines changed: 20 additions & 661 deletions
Large diffs are not rendered by default.

cache.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

dictionary.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

main.ts

Lines changed: 0 additions & 112 deletions
This file was deleted.

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "HackerNews",
44
"version": "1.0.1",
55
"minAppVersion": "0.9.12",
6-
"description": "Periodically fetches and displays top HackerNews items.",
6+
"description": "Periodically fetches and displays top stories from HackerNews.",
77
"author": "Arpit Bhayani",
88
"authorUrl": "https://arpitbhayani.me",
99
"isDesktopOnly": false

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2-
"name": "obsidian-sample-plugin",
3-
"version": "0.12.0",
4-
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
2+
"name": "obsidian-hackernews",
3+
"version": "1.0.0",
4+
"description": "Periodically fetches and displays top stories from HackerNews.",
55
"main": "main.js",
66
"scripts": {
77
"dev": "rollup --config rollup.config.js -w",
88
"build": "rollup --config rollup.config.js --environment BUILD:production"
99
},
10-
"keywords": [],
11-
"author": "",
10+
"keywords": [
11+
"obsidian-plugin",
12+
"hackernews",
13+
"obsidian"
14+
],
15+
"author": "Arpit Bhayani",
1216
"license": "MIT",
1317
"devDependencies": {
1418
"@rollup/plugin-commonjs": "^18.0.0",
@@ -36,7 +40,6 @@
3640
"svelte"
3741
],
3842
"dependencies": {
39-
"match-casing": "^2.0.0",
4043
"obsidian": "^0.12.5"
4144
}
4245
}

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const isProd = (process.env.BUILD === 'production');
1010
const banner =
1111
`/*
1212
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
13-
if you want to view the source visit the plugins github repository (https://github.com/phibr0/obsidian-dictionary)
13+
if you want to view the source visit the plugins github repository (https://github.com/arpitbbhayani/obsidian-hackernews)
1414
*/
1515
`;
1616

src/_constants.ts

Lines changed: 3 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,18 @@
1-
import type { DictionaryCache, DictionarySettings } from "src/types";
1+
import type { HackerNewsSettings } from "src/types";
22
import t from 'src/l10n/helpers';
33

4-
export const VIEW_TYPE = 'dictionary-view';
4+
export const VIEW_TYPE = 'hackernews-view';
55
export const VIEW_DISPLAY_TEXT = t('HackerNews');
66
export const VIEW_ICON = 'hackernews';
77

88
export const LANGUAGES = {
99
"en_US": "English (US)",
10-
"hi": "हिन्दी (Hindi)",
11-
"es": "Español (Spanish)",
12-
"fr": "Français (French)",
13-
"ja": "日本語 (Japanese)",
14-
"ru": "Русский (Russian)",
15-
"en_GB": "English (UK)",
16-
"de": "Deutsch (German)",
17-
"it": "Italiano (Italian)",
18-
"ko": "한국어 (Korean)",
19-
"pt_BR": "Português do Brasil (Brazilian Portuguese)",
20-
"ar": "اَلْعَرَبِيَّةُ‎ (Arabic)",
21-
"tr": "Türkçe (Turkish)",
22-
"cn": "中国人 (Chinese)"
2310
}
2411

2512
export const RFC = {
2613
"en_US": "en-US",
27-
"hi": "hi",
28-
"es": "es",
29-
"fr": "fr",
30-
"ja": "ja",
31-
"ru": "ru",
32-
"en_GB": "en-GB",
33-
"de": "de",
34-
"it": "it",
35-
"ko": "ko",
36-
"pt_BR": "pt-BR",
37-
"ar": "ar",
38-
"tr": "tr",
39-
"cn": "zh"
4014
}
4115

42-
43-
export const DEFAULT_CACHE: DictionaryCache = {
44-
cachedDefinitions: [],
45-
cachedSynonyms: [],
46-
}
47-
48-
export const DEFAULT_SETTINGS: DictionarySettings = {
49-
defaultLanguage: "en_US",
16+
export const DEFAULT_SETTINGS: HackerNewsSettings = {
5017
defaultRefreshInterval: "60",
51-
shouldShowSynonymPopover: true,
52-
shouldShowCustomContextMenu: false,
53-
definitionApiName: "Free Dictionary API",
54-
synonymApiName: "Free Dictionary API",
55-
partOfSpeechApiName: "Systran API",
56-
advancedSynonymAnalysis: false,
57-
useCaching: false,
58-
folder: '',
59-
capitalizedFileName: true,
60-
prefix: "",
61-
suffix: " ({{lang}})",
62-
template: `---
63-
# {{notice}}
64-
aliases: ["{{word}}"]
65-
---
66-
67-
# {{word}}
68-
69-
## {{pronunciationHeader}}
70-
71-
{{phoneticList}}
72-
73-
## {{meaningHeader}}
74-
75-
{{meanings}}
76-
`,
77-
languageSpecificSubFolders: false
7818
}
79-

0 commit comments

Comments
 (0)