Skip to content

Commit

Permalink
Reorganize without electron-vite scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Nov 22, 2023
1 parent 87e30fc commit c70390b
Show file tree
Hide file tree
Showing 188 changed files with 63 additions and 574 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="src/renderer/assets/img/logo-guide-draft-transparent-tight.png" width="250" alt="NeuroConv logo"/>
<img src="src/assets/img/logo-guide-draft-transparent-tight.png" width="250" alt="NeuroConv logo"/>
<h3 align="center">NWB Graphical User Interface for Data Entry</h3>
</p>

Expand Down
8 changes: 4 additions & 4 deletions commoners.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { updateURLParams } from './src/renderer/utils/url';
import { updateURLParams } from './src/utils/url';

const name = 'nwb-guide'

Expand All @@ -10,7 +10,7 @@ const isSupported = {
export default {


icon: 'src/renderer/assets/img/logo-guide-draft.png',
icon: 'src/assets/img/logo-guide-draft.png',

plugins: [
{
Expand Down Expand Up @@ -50,7 +50,7 @@ export default {
{

name: "open-file",

isSupported,

load: function () {
Expand Down Expand Up @@ -106,7 +106,7 @@ export default {
},

electron: {
splash: './src/main/splash-screen.html',
splash: './src/splash-screen.html',
window: {
minWidth: 1121,
minHeight: 735,
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<title>NWB GUIDE</title>

<link rel="preload" href="./src/renderer/assets/img/logo-guide-draft-transparent-tight.png" as="image" />
<link rel="preload" href="./src/assets/img/logo-guide-draft-transparent-tight.png" as="image" />

<style>
#version {
Expand All @@ -31,6 +31,6 @@
<body>
<nwb-dashboard></nwb-dashboard>

<script type="module" src="./src/renderer/src/index"></script>
<script type="module" src="./src/index"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions schemas/base-metadata.schema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { serverGlobals, resolve } from '../src/renderer/src/server/globals'
import { serverGlobals, resolve } from '../src/server/globals'

import { header } from '../src/renderer/src/stories/forms/utils'
import { header } from '../src/stories/forms/utils'

import baseMetadataSchema from './json/base_metadata_schema.json' assert { type: "json" }

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isElectron, os } from "../electron/index.js";
import paths from "../../../../paths.config.json" assert { type: "json" };
import paths from "../../paths.config.json" assert { type: "json" };
import { joinPath } from "../globals.js";

export const reloadPageToHome = () => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/renderer/src/globals.js → src/globals.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { path } from "./electron/index.js";

import guideGlobalMetadata from "../../../guideGlobalMetadata.json" assert { type: "json" };
import guideGlobalMetadata from "../guideGlobalMetadata.json" assert { type: "json" };

export const joinPath = (...args) => (path ? path.join(...args) : args.filter((str) => str).join("/"));

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/index.ts → src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import Swal from 'sweetalert2'
import { loadServerEvents, pythonServerOpened } from "./server/index.js";

import { statusBar } from "./server/globals.js";
import { statusBar } from "./server/globals";

// Set the sidebar subtitle to the current app version
const dashboard = document.querySelector('nwb-dashboard') as Dashboard
Expand Down
Loading

0 comments on commit c70390b

Please sign in to comment.