Skip to content

Commit

Permalink
Merge branch 'break_up_endpoints' of https://github.com/neurodatawith…
Browse files Browse the repository at this point in the history
…outborders/nwb-guide into break_up_endpoints
  • Loading branch information
CodyCBakerPhD committed May 27, 2024
2 parents 7e05468 + a5477d9 commit a3f1e71
Show file tree
Hide file tree
Showing 125 changed files with 94,682 additions and 94,706 deletions.
52 changes: 26 additions & 26 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
// .storybook/manager.js

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 },
},
});
// .storybook/manager.js

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 },
},
});
36 changes: 18 additions & 18 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",
},
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
/** @type { import('@storybook/web-components').Preview } */
const preview = {
parameters: {
chromatic: { disableSnapshot: true },
backgrounds: {
default: "light",
},
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
66 changes: 33 additions & 33 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
/* Improve spacing */
.version-switcher__container.dropdown {
margin-left: 10px;
}

button.btn.version-switcher__button {
margin-bottom: 0px;
}

/* Show on hover */
.version-switcher__container.dropdown:hover .dropdown-menu {
display: block;
left: 0;
margin-top: var(--bs-dropdown-spacer);
top: 100%;
}

.dropdown-menu.show {
display: none;
}

/* Remove underline and borders */
button.btn.version-switcher__button:hover {
text-decoration: none;
}

.version-switcher__menu a.list-group-item {
border: none !important;
}

.version-switcher__menu a.list-group-item:hover {
text-decoration: none !important;
}
/* Improve spacing */
.version-switcher__container.dropdown {
margin-left: 10px;
}

button.btn.version-switcher__button {
margin-bottom: 0px;
}

/* Show on hover */
.version-switcher__container.dropdown:hover .dropdown-menu {
display: block;
left: 0;
margin-top: var(--bs-dropdown-spacer);
top: 100%;
}

.dropdown-menu.show {
display: none;
}

/* Remove underline and borders */
button.btn.version-switcher__button:hover {
text-decoration: none;
}

.version-switcher__menu a.list-group-item {
border: none !important;
}

.version-switcher__menu a.list-group-item:hover {
text-decoration: none !important;
}
84 changes: 42 additions & 42 deletions electron.vite.config.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
import { defineConfig } from "electron-vite";

import ViteYaml from "@modyfi/vite-plugin-yaml";

import { resolve } from "path";

const htmlRoot = "src/electron/renderer";

export default defineConfig({
main: {
build: {
rollupOptions: {
input: {
index: resolve(__dirname, "src/electron/main/main.ts"),
},
},
},
},
preload: {
build: {
rollupOptions: {
input: {
index: resolve(__dirname, "src/electron/preload/preload.js"),
},
},
},
},
renderer: {
root: `./${htmlRoot}`,
plugins: [ViteYaml()],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, htmlRoot, "index.html"),
},
output: {
dir: resolve(__dirname, "build", "renderer"),
},
},
},
},
});
import { defineConfig } from "electron-vite";

import ViteYaml from "@modyfi/vite-plugin-yaml";

import { resolve } from "path";

const htmlRoot = "src/electron/renderer";

export default defineConfig({
main: {
build: {
rollupOptions: {
input: {
index: resolve(__dirname, "src/electron/main/main.ts"),
},
},
},
},
preload: {
build: {
rollupOptions: {
input: {
index: resolve(__dirname, "src/electron/preload/preload.js"),
},
},
},
},
renderer: {
root: `./${htmlRoot}`,
plugins: [ViteYaml()],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, htmlRoot, "index.html"),
},
output: {
dir: resolve(__dirname, "build", "renderer"),
},
},
},
},
});
70 changes: 35 additions & 35 deletions notarize.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
const fs = require("fs");
const path = require("path");
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;
}

// 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}`);
}

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

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

console.log(`Done notarizing ${appId}`);
};
const fs = require("fs");
const path = require("path");
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;
}

// 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}`);
}

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

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

console.log(`Done notarizing ${appId}`);
};
32 changes: 16 additions & 16 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: "crlf",
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,
};
module.exports = {
arrowParens: "always",
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: "auto",
endOfLine: "crlf",
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 a3f1e71

Please sign in to comment.