-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: unknown <sudhanplayz@gmail.com>
- Loading branch information
1 parent
487ec96
commit aafc4da
Showing
10 changed files
with
1,878 additions
and
2,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
|
||
/**@type {import('eslint').Linter.Config} */ | ||
// eslint-disable-next-line no-undef | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'@typescript-eslint', | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
], | ||
rules: { | ||
'semi': [2, "always"], | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/explicit-module-boundary-types': 0, | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
} | ||
}; | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint"], | ||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
rules: { | ||
semi: [2, "always"], | ||
"@typescript-eslint/no-unused-vars": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"@typescript-eslint/no-non-null-assertion": 0, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
{ | ||
"name": "neondark-theme", | ||
"displayName": "Neon Dark Theme", | ||
"description": "An eye-catching neon theme which powerup your code editor into awesome code editor", | ||
"version": "1.1.3", | ||
"publisher": "Sudhan", | ||
"browser": "./src/index.js", | ||
"author": { | ||
"name": "SudhanPlayz", | ||
"url": "https://github.com/SudhanPlayz" | ||
}, | ||
"scripts": { | ||
"lint": "eslint . --ext .js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/SudhanPlayz/NeonDark-Theme" | ||
}, | ||
"icon": "images/vsc.png", | ||
"engines": { | ||
"vscode": "^1.56.0" | ||
}, | ||
"main": "src/index.js", | ||
"keywords": [ | ||
"vsc-theme", | ||
"neondark", | ||
"neon", | ||
"dark", | ||
"theme", | ||
"violet-theme" | ||
], | ||
"categories": [ | ||
"Themes" | ||
], | ||
"activationEvents": [ | ||
"onStartupFinished" | ||
], | ||
"galleryBanner": { | ||
"color": "#7000ff", | ||
"theme": "dark" | ||
}, | ||
"contributes": { | ||
"themes": [ | ||
{ | ||
"label": "Neon Dark Theme", | ||
"uiTheme": "vs-dark", | ||
"path": "./themes/Neon Dark Theme-color-theme.json" | ||
} | ||
] | ||
}, | ||
"dependencies": { | ||
"eslint": "^7.26.0" | ||
} | ||
"name": "neondark-theme", | ||
"displayName": "Neon Dark Theme", | ||
"description": "An eye-catching neon theme which powerup your code editor into awesome code editor", | ||
"version": "1.2.0", | ||
"publisher": "Sudhan", | ||
"browser": "./src/index.js", | ||
"author": { | ||
"name": "SudhanPlayz", | ||
"url": "https://github.com/SudhanPlayz" | ||
}, | ||
"scripts": { | ||
"lint": "eslint . --ext .js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/SudhanPlayz/NeonDark-Theme" | ||
}, | ||
"icon": "images/vsc.png", | ||
"engines": { | ||
"vscode": "^1.56.0" | ||
}, | ||
"main": "src/index.js", | ||
"keywords": [ | ||
"vsc-theme", | ||
"neondark", | ||
"neon", | ||
"dark", | ||
"theme", | ||
"violet-theme" | ||
], | ||
"categories": [ | ||
"Themes" | ||
], | ||
"activationEvents": [ | ||
"onStartupFinished" | ||
], | ||
"galleryBanner": { | ||
"color": "#7000ff", | ||
"theme": "dark" | ||
}, | ||
"contributes": { | ||
"themes": [ | ||
{ | ||
"label": "Neon Dark Theme", | ||
"uiTheme": "vs-dark", | ||
"path": "./themes/Neon Dark Theme-color-theme.json" | ||
} | ||
] | ||
}, | ||
"dependencies": { | ||
"eslint": "^7.26.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class LocalStorageService { | ||
constructor(m) { | ||
this.m = m; | ||
} | ||
|
||
get(key) { | ||
return this.m.get(key, null); | ||
} | ||
|
||
set(key, value) { | ||
this.m.update(key, value); | ||
} | ||
} | ||
|
||
module.exports = LocalStorageService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
const vscode = require("vscode") | ||
const LocalStorageService = require("./services/LocalStorageService") | ||
const vscode = require("vscode"); | ||
let db = require("./db"); | ||
|
||
module.exports = { | ||
/** | ||
* Runs when this extenstion has been installed at first time | ||
* @param {vscode.ExtensionContext} context | ||
*/ | ||
activate: async (context) => { | ||
const lts = new LocalStorageService(context.workspaceState) | ||
/** | ||
* Runs when this extenstion has been installed at first time | ||
* @param {vscode.ExtensionContext} context | ||
*/ | ||
activate: async (context) => { | ||
db = new db(context.workspaceState); | ||
|
||
let isAsked = lts.getValue("rating") | ||
let rating = db.get("rating"); | ||
|
||
if(!isAsked){ | ||
let Clicked = await vscode.window.showInformationMessage("Thank you for installing Neon Dark Theme", "Give a star 🌟"); | ||
if(Clicked && Clicked.startsWith("Give"))vscode.env.openExternal("https://github.com/SudhanPlayz/NeonDark-Theme") | ||
lts.setValue("rating", true) | ||
} | ||
}, | ||
} | ||
if (!rating || rating !== "ok") { | ||
db.set("rating", "ok"); | ||
let Clicked = await vscode.window.showInformationMessage( | ||
"Thank you for installing Neon Dark Theme", | ||
"Give a star 🌟" | ||
); | ||
if (Clicked && Clicked.startsWith("Give")) | ||
vscode.env.openExternal( | ||
"https://github.com/SudhanPlayz/NeonDark-Theme" | ||
); | ||
} | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.