-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'break_up_endpoints' of https://github.com/neurodatawith…
…outborders/nwb-guide into break_up_endpoints
- Loading branch information
Showing
125 changed files
with
94,682 additions
and
94,706 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"), | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}`); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}; |
Oops, something went wrong.