Skip to content

Commit

Permalink
✨ new GUI release
Browse files Browse the repository at this point in the history
  • Loading branch information
actuallymentor committed Jun 28, 2024
1 parent 1e0094a commit 6e3a640
Show file tree
Hide file tree
Showing 9 changed files with 333 additions and 176 deletions.
5 changes: 5 additions & 0 deletions app/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@babel/preset-react"
]
}
5 changes: 3 additions & 2 deletions app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { eslint_config } = require( '@poap/skunk-linter' )
// const { eslint_config } = require( './index.cjs' )
const { eslint_config } = require( 'airier' )

// Export the default eslint config
module.exports = {
...eslint_config
}
}
21 changes: 0 additions & 21 deletions app/.husky/pre-commit

This file was deleted.

27 changes: 27 additions & 0 deletions app/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"i18n-ally.localesPaths": [
"public/locales"
],
"i18n-ally.keystyle": "nested",
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.renderWhitespace": "all",
"editor.formatOnSave": true,
"eslint.format.enable": true,
"eslint.run": "onType",
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"vite.config.js": "*.js,.babelrc,.nvmrc,index.html,.gitignore",
".env": ".env*,.*.json",
"firebase.json": "fire*,.fire*",
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml,.eslint*,config.*,.npm*,.nvm*,.ncu*",
"README.md": "*.md,LICENSE",
}
}
2 changes: 1 addition & 1 deletion app/build_hooks/afterSign.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
// /////////////////////////////*/
require( 'dotenv' ).config()
const { notarize } = require( 'electron-notarize' )
const { notarize } = require( '@electron/notarize' )
const log = ( ...messages ) => console.log( ...messages )

exports.default = async function notarizing( context ) {
Expand Down
10 changes: 6 additions & 4 deletions app/modules/battery.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,24 @@ const initialize_battery = async () => {
] )
log( `Internet online: ${ online }` )

// Check if battery is installed
// Check if battery is installed and visudo entries are complete. New visudo entries are added when we do new `sudo` stuff in battery.sh
const [
battery_installed,
smc_installed,
charging_in_visudo,
discharging_in_visudo,
magsafe_led_in_visudo
magsafe_led_in_visudo,
additional_magsafe_led_in_visudo
] = await Promise.all( [
exec_async( `${ path_fix } which battery` ).catch( () => false ),
exec_async( `${ path_fix } which smc` ).catch( () => false ),
exec_async( `${ path_fix } sudo -n /usr/local/bin/smc -k CH0C -r` ).catch( () => false ),
exec_async( `${ path_fix } sudo -n /usr/local/bin/smc -k CH0I -r` ).catch( () => false ),
exec_async( `${ path_fix } sudo -n /usr/local/bin/smc -k ACLC -r` ).catch( () => false )
exec_async( `${ path_fix } sudo -n /usr/local/bin/smc -k ACLC -r` ).catch( () => false ),
exec_async( `${ path_fix } sudo -n /usr/local/bin/smc -k ACLC -w 01` ).catch( () => false )
] )

const visudo_complete = charging_in_visudo && discharging_in_visudo && magsafe_led_in_visudo
const visudo_complete = charging_in_visudo && discharging_in_visudo && magsafe_led_in_visudo && additional_magsafe_led_in_visudo
const is_installed = battery_installed && smc_installed
log( 'Is installed? ', is_installed )

Expand Down
Loading

0 comments on commit 6e3a640

Please sign in to comment.