Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Refactoring Buttons #183

Merged
merged 6 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,7 @@ suckmyass
vscord-*.vsix

# macOS
.DS_Store
.DS_Store

# package.lock
package-lock.json
233 changes: 41 additions & 192 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,199 +462,48 @@
},
{
"title": "Buttons",
"type": "object",
"properties": {
"vscord.status.buttons.button1.enabled": {
"type": "boolean",
"default": true,
"description": "Should the button1 be shown?",
"order": 0
},
"vscord.status.buttons.button1.active.enabled": {
"type": "boolean",
"default": false,
"description": "Should the button1 be shown when active?",
"order": 1
},
"vscord.status.buttons.button1.active.label": {
"type": "string",
"default": "Active Label Button 1",
"description": "The label to use when button1 is active.",
"order": 2
},
"vscord.status.buttons.button1.active.url": {
"type": "string",
"default": "https://github.com/leonardssh/vscord/",
"description": "The button1 url to use when active.",
"order": 3
},
"vscord.status.buttons.button1.git.active.enabled": {
"type": "boolean",
"default": true,
"description": "Should the button1 be shown when active?",
"order": 4
},
"vscord.status.buttons.button1.git.active.label": {
"type": "string",
"default": "View Repository",
"description": "The label to use when button1 is active.",
"order": 5
},
"vscord.status.buttons.button1.git.active.url": {
"type": "string",
"default": "{git_url}",
"description": "The button1 url to use when active.",
"order": 6
},
"vscord.status.buttons.button1.git.idle.enabled": {
"type": "boolean",
"default": true,
"description": "Should the button1 be shown when active?",
"order": 4
},
"vscord.status.buttons.button1.git.idle.label": {
"type": "string",
"default": "View Repository",
"description": "The label to use when button1 is active.",
"order": 8
},
"vscord.status.buttons.button1.git.idle.url": {
"type": "string",
"default": "{git_url}",
"description": "The button1 url to use when active.",
"order": 9
},
"vscord.status.buttons.button1.idle.enabled": {
"type": "boolean",
"default": false,
"description": "Should the button1 be shown when idle?",
"order": 10
},
"vscord.status.buttons.button1.idle.label": {
"type": "string",
"default": "",
"description": "The label to use when button1 is idle.",
"order": 11
},
"vscord.status.buttons.button1.idle.url": {
"type": "string",
"default": "",
"description": "The button1 url to use idle.",
"order": 12
},
"vscord.status.buttons.button1.inactive.enabled": {
"type": "boolean",
"default": false,
"description": "Should the button1 be shown when inactive?",
"order": 13
},
"vscord.status.buttons.button1.inactive.label": {
"type": "string",
"default": "",
"description": "The label to show when button1 is inactive.",
"order": 14
},
"vscord.status.buttons.button1.inactive.url": {
"type": "string",
"default": "",
"description": "The button1 url to use when inactive.",
"order": 15
},
"vscord.status.buttons.button2.enabled": {
"type": "boolean",
"default": false,
"description": "Should the button2 be shown?",
"order": 16
},
"vscord.status.buttons.button2.active.enabled": {
"type": "boolean",
"default": false,
"description": "Should the button2 be shown when active?",
"order": 17
},
"vscord.status.buttons.button2.active.label": {
"type": "string",
"default": "Active Label Button 2",
"description": "The label to use when button2 is active.",
"order": 18
},
"vscord.status.buttons.button2.active.url": {
"type": "string",
"default": "https://github.com/leonardssh/vscord/",
"description": "The button2 url to use when active.",
"order": 19
},
"vscord.status.buttons.button2.git.active.enabled": {
"type": "boolean",
"default": true,
"description": "Should the button2 be shown when active?",
"order": 20
},
"vscord.status.buttons.button2.git.active.label": {
"type": "string",
"default": "View Repository",
"description": "The label to use when button2 is active.",
"order": 21
},
"vscord.status.buttons.button2.git.active.url": {
"type": "string",
"default": "{git_url}",
"description": "The button2 url to use when active.",
"order": 22
},
"vscord.status.buttons.button2.git.idle.enabled": {
"type": "boolean",
"default": true,
"description": "Should the button2 be shown when active?",
"order": 23
},
"vscord.status.buttons.button2.git.idle.label": {
"type": "string",
"default": "View Repository",
"description": "The label to use when button2 is active.",
"order": 24
},
"vscord.status.buttons.button2.git.idle.url": {
"type": "string",
"default": "{git_url}",
"description": "The button2 url to use when active.",
"order": 25
},
"vscord.status.buttons.button2.idle.enabled": {
"type": "boolean",
"default": false,
"description": "Should the button2 be shown when idle?",
"order": 26
},
"vscord.status.buttons.button2.idle.label": {
"type": "string",
"default": "",
"description": "The label to use when button2 is idle.",
"order": 27
},
"vscord.status.buttons.button2.idle.url": {
"type": "string",
"default": "",
"description": "The button2 url to use idle.",
"order": 28
},
"vscord.status.buttons.button2.inactive.enabled": {
"type": "boolean",
"default": false,
"description": "Should the button2 be shown when inactive?",
"order": 29
},
"vscord.status.buttons.button2.inactive.label": {
"type": "string",
"default": "",
"description": "The label to show when inactive.",
"order": 30
},
"vscord.status.buttons.button2.inactive.url": {
"type": "string",
"default": "",
"description": "The button2 url to use when inactive.",
"order": 31
"vscord.status.buttons": {
"type": "object",
"markdownDescription": "The buttons to show in the rich presence. You can have to buttons 1 & 2. The valid config for the buttons are active, inactive, idle. Git has its own idle and active buttons **Example**: \n```js\n\"vscord.buttons\": {\n \"button1\": {\n \"enabled\": true,\n \"active\": {\n \"enabled\": true,\n \"label\": \"Active Label Button 1\",\n \"url\": \"\" // The url to open when the button is clicked.\n },\n \"git\": {\n \"enabled\": true,\n \"active\": {\n \"enabled\": true,\n \"label\": \"View Repository\",\n \"url\": \"{git_url}\" // The url to open when the button is clicked.\n }\n }\n }...cont\n```",
"default": {
"button1": {
"enabled": true,
"active": {
"enabled": true,
"label": "Active Label Button 1",
"url": "https://github.com/leonardssh/vscord"
},
"inactive": {
"enabled": true,
"label": "Inactive Label Button 1",
"url": "https://github.com/leonardssh/vscord"
},
"idle": {
"enabled": true,
"label": "Idle Label Button 1",
"url": "https://github.com/leonardssh/vscord"
},
"git": {
"enabled": true,
"active": {
"enabled": true,
"label": "View Repository",
"url": "{git_url}"
},
"inactive": {
"enabled": true,
"label": "View Repository",
"url": "{git_url}"
},
"idle": {
"enabled": true,
"label": "View Repository",
"url": "{git_url}"
}
}
}
}
}
}
},
Expand Down
Loading