Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 1, 2023
1 parent 4d4fffe commit 95c62b3
Show file tree
Hide file tree
Showing 86 changed files with 71,463 additions and 71,621 deletions.
18 changes: 9 additions & 9 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/** @type { import('@storybook/web-components-vite').StorybookConfig } */
const config = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
framework: {
name: "@storybook/web-components-vite",
options: {},
},
docs: {
autodocs: "tag",
},
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
framework: {
name: "@storybook/web-components-vite",
options: {},
},
docs: {
autodocs: "tag",
},
};
export default config;
40 changes: 20 additions & 20 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
import { addons } from "@storybook/addons";

addons.setConfig({
isFullscreen: false,
showNav: true,
showPanel: true,
panelPosition: "bottom",
enableShortcuts: false,
showToolbar: true,
theme: undefined,
selectedPanel: undefined,
initialActive: "sidebar",
sidebar: {
showRoots: false,
collapsedRoots: ["other"],
},
toolbar: {
title: { hidden: false },
zoom: { hidden: false },
eject: { hidden: false },
copy: { hidden: false },
fullscreen: { hidden: false },
},
isFullscreen: false,
showNav: true,
showPanel: true,
panelPosition: "bottom",
enableShortcuts: false,
showToolbar: true,
theme: undefined,
selectedPanel: undefined,
initialActive: "sidebar",
sidebar: {
showRoots: false,
collapsedRoots: ["other"],
},
toolbar: {
title: { hidden: false },
zoom: { hidden: false },
eject: { hidden: false },
copy: { hidden: false },
fullscreen: { hidden: false },
},
});
24 changes: 12 additions & 12 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/** @type { import('@storybook/web-components').Preview } */
const preview = {
parameters: {
chromatic: { disableSnapshot: true },
backgrounds: {
default: "light",
parameters: {
chromatic: { disableSnapshot: true },
backgrounds: {
default: "light",
},
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
6 changes: 3 additions & 3 deletions electron.vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "electron-vite";

// electron.vite.config.js
export default defineConfig({
main: {},
preload: {},
renderer: {},
main: {},
preload: {},
renderer: {},
});
50 changes: 24 additions & 26 deletions notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,33 @@ require("dotenv").config();
var electron_notarize = require("electron-notarize");

module.exports = async function (params) {
// Only notarize the app on Mac OS only.
if (process.platform !== "darwin") {
console.log(
"No notarization needed for current platform. This process is only intended for macOS."
);
return;
}
console.log("afterSign hook triggered", params);
// Only notarize the app on Mac OS only.
if (process.platform !== "darwin") {
console.log("No notarization needed for current platform. This process is only intended for macOS.");
return;
}
console.log("afterSign hook triggered", params);

// Same appId in electron-builder.
let appId = "com.catalystneuro.nwbguide";
// Same appId in electron-builder.
let appId = "com.catalystneuro.nwbguide";

let appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`);
if (!fs.existsSync(appPath)) {
throw new Error(`Cannot find application at: ${appPath}`);
}
let appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`);
if (!fs.existsSync(appPath)) {
throw new Error(`Cannot find application at: ${appPath}`);
}

console.log(`Notarizing ${appId} found at ${appPath}`);
console.log(`Notarizing ${appId} found at ${appPath}`);

try {
await electron_notarize.notarize({
appBundleId: appId,
appPath: appPath,
appleId: process.env.appleId,
appleIdPassword: process.env.appleIdPassword,
});
} catch (error) {
console.error(error);
}
try {
await electron_notarize.notarize({
appBundleId: appId,
appPath: appPath,
appleId: process.env.appleId,
appleIdPassword: process.env.appleIdPassword,
});
} catch (error) {
console.error(error);
}

console.log(`Done notarizing ${appId}`);
console.log(`Done notarizing ${appId}`);
};
28 changes: 14 additions & 14 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module.exports = {
arrowParens: "always",
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: "auto",
endOfLine: "auto",
htmlWhitespaceSensitivity: "css",
printWidth: 120, // to match black
quoteProps: "as-needed",
semi: true,
singleQuote: false,
tabWidth: 4, // to match Python
trailingComma: "es5",
useTabs: false,
vueIndentScriptAndStyle: false,
arrowParens: "always",
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: "auto",
endOfLine: "auto",
htmlWhitespaceSensitivity: "css",
printWidth: 120, // to match black
quoteProps: "as-needed",
semi: true,
singleQuote: false,
tabWidth: 4, // to match Python
trailingComma: "es5",
useTabs: false,
vueIndentScriptAndStyle: false,
};
Loading

0 comments on commit 95c62b3

Please sign in to comment.