Skip to content

Commit

Permalink
Added honor roll
Browse files Browse the repository at this point in the history
  • Loading branch information
arononak committed Feb 17, 2024
1 parent 3ced7ce commit 9f85020
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [email protected]/lib/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = `3.15.0`
export const VERSION = `3.16.0`
40 changes: 33 additions & 7 deletions [email protected]/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class GithubActionsPreferences extends ExtensionPreferences {
const settings = this.getSettings()

const prefsController = new PrefsController(settings)

const {
enabledExtension,

Expand Down Expand Up @@ -206,6 +206,14 @@ export default class GithubActionsPreferences extends ExtensionPreferences {
})
otherGroup.add(homepageRow)

const newExtensionRow = createButtonRow({
title: `New extension`,
subtitle: `Check out my new extension`,
buttonLabel: `Check`,
onButtonPressed: () => prefsController.onOpenNewExtensionClicked(),
})
otherGroup.add(newExtensionRow)

const bugBountyRow = createButtonRow({
title: `Bug Bounty program`,
subtitle: `If you find an error and it is corrected in the next version, your login and email will be on the honor list in the extension`,
Expand All @@ -214,13 +222,31 @@ export default class GithubActionsPreferences extends ExtensionPreferences {
})
otherGroup.add(bugBountyRow)

const newExtensionRow = createButtonRow({
title: `New extension`,
subtitle: `Check out my new extension`,
buttonLabel: `Check`,
onButtonPressed: () => prefsController.onOpenNewExtensionClicked(),
const honorRollRow = createButtonRow({
title: `Honor Roll`,
subtitle: `List of people who helped develop this extension`,
buttonLabel: `Show`,
onButtonPressed: () => {
let dialog = new Gtk.Dialog({
title: `Honor Roll`,
use_header_bar: true,
modal: true,
})

let label = new Gtk.Label({
label: `\n Empty list :/ \n\n If you had any contribution and you agree to include your nickname + email. \n Please send me an email: [email protected] `,
})
label.set_halign(Gtk.Align.CENTER)
label.set_valign(Gtk.Align.CENTER)
label.set_hexpand(true)
label.set_vexpand(false)

dialog.set_default_size(300, 200)
dialog.get_content_area().append(label)
dialog.show()
},
})
otherGroup.add(newExtensionRow)
otherGroup.add(honorRollRow)

if (hiddenMode) {
const extendedColoredMode = createToggleRow({
Expand Down

0 comments on commit 9f85020

Please sign in to comment.