Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
Signed-off-by: unknown <sudhanplayz@gmail.com>
  • Loading branch information
SudhanPlayz committed Jan 19, 2022
1 parent 487ec96 commit aafc4da
Show file tree
Hide file tree
Showing 10 changed files with 1,878 additions and 2,123 deletions.
30 changes: 12 additions & 18 deletions .eslintrc.js
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,
},
};
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: 12

- run: yarn

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com

- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v0
with:
Expand Down
22 changes: 10 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
]
}
]
}
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"]
}
]
}
12 changes: 0 additions & 12 deletions CHANGELOG.md

This file was deleted.

10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,34 @@
</details>

## About The Project

![Screenshot](https://raw.githubusercontent.com/SudhanPlayz/NeonDark-Theme/master/images/Screenshot.png)

### Built With
* [VS Code](https://code.visualstudio.com)

- [VS Code](https://code.visualstudio.com)

## Getting Started

To get a local copy up and running follow these simple steps.

### Prerequisites

This is an example of how to list things you need to use the software and how to install them.

- Get vs code
- Internet to download ;-;

### Installation

Download and install it from [VSC Marketplace](https://marketplace.visualstudio.com/items?itemName=Sudhan.neondark-theme) <3

## Roadmap

See the [open issues](https://github.com/SudhanPlayz/NeonDark-Theme/issues) for a list of proposed features (and known issues).

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
Expand All @@ -69,4 +76,5 @@ Contributions are what make the open source community such an amazing place to b
5. Open a Pull Request

## License

Distributed under the MIT License. See `LICENSE` for more information.
104 changes: 52 additions & 52 deletions package.json
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"
}
}
15 changes: 15 additions & 0 deletions src/db.js
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;
38 changes: 22 additions & 16 deletions src/index.js
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"
);
}
},
};
32 changes: 0 additions & 32 deletions src/services/LocalStorageService.js

This file was deleted.

Loading

0 comments on commit aafc4da

Please sign in to comment.