Skip to content

Commit cbed87e

Browse files
committed
#703 Migrate to Vite
1 parent 8232e33 commit cbed87e

26 files changed

Lines changed: 4788 additions & 14923 deletions

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,20 @@ Volunteers are always welcome!
5050
- [Conventions](./Documentation/conventions.md)
5151

5252
## Development
53-
To get started, make sure you have Node.js installed (for instance
54-
through https://github.com/nvm-sh/nvm), and:
55-
1. run
53+
54+
To get started, make sure you have Node.js installed (for instance through [nvm](https://github.com/nvm-sh/nvm)), then:
55+
56+
1. Clone, install, and start the dev server:
57+
5658
```sh
5759
git clone https://github.com/solidos/solid-panes
5860
cd solid-panes
5961
npm install
60-
npm run start
62+
npm start
6163
```
62-
2. a browser window should automatically open at http://localhost:9000, if for some reason it doesn't go ahead and manually navigate there.
63-
3. Once you arrive at the Solid Pane Tester page, the `profile-pane` will be loaded by default. Proceed to edit `solid-panes/dev/loader.ts` and, at line 5, you should see `import Pane from 'profile-pane'`. Simply change `'profile-pane'` to your preferred pane/directory containing the pane of choice; for example, you could choose `'source-pane'` and bam, it will load that pane. For those who are new, you can go to the `solid-panes/src` directory and manually navigate through each individual folder. In most folders, you simply look for any file that has `pane` in the title. Copy and paste the `pane.js` file of your choice into the `solid-panes/dev/pane` folder, or you can import directly from the `src` directory. For example, importing from `'../src/dokieli/dokieliPane'` will work just fine. Each time you save `solid-panes/dev/loader.ts` while importing a different pane, your browser at `http://localhost:9000/` should automatically refresh. It's a good idea to keep the developer console open in your web browser to ensure panes are loading and rendering properly.
64+
2. Open http://localhost:5173 in your browser. You should see the pane development sandbox.
6465

65-
4. Another tip: to ensure you arrive at the proper destination, look at lines 48–53 in `solid-panes/dev/loader.ts`. You should see an event listener that is ready for a string. `renderPane('https://solidos.solidcommunity.net/Team/SolidOs%20team%20chat/index.ttl#this')` will be the default. Depending on the `pane.js` that you chose in the earlier import statements, the `renderPane` function determines the way you will see DOMContent inside of that particular pane. If you have created an `index.html` in your provider pod storage area, you could use `'https://yoursolidname.solidcommunity.net/profile/index.html'` inside of the `renderPane()` function parameters. You can edit the string manually in `solid-panes/dev/loader.ts`, or you can go to your developer console and type `renderPane('https://yoursolidname.solidcommunity.net/profile/index.html')` — just point to a part of your account that is congruent to the pane that you wish to import! :)
66+
3. You can change the `subject` in the sandbox to determine which pane gets rendered. For example, the default subject loads the `profile-pane`.
6667

6768
## Contributing panes
6869
When you created a pane, you can either add it as an npm dependency
@@ -80,8 +81,8 @@ pane. Any other pane which wants to deal with contacts can just use the pane wit
8081

8182

8283
## Generative AI usage
83-
The SolidOS team is using GitHub Copilot integrated in Visual Studio Code.
84-
We have added comments in the code to make it explicit which parts are 100% written by AI.
84+
The SolidOS team is using GitHub Copilot integrated in Visual Studio Code.
85+
We have added comments in the code to make it explicit which parts are 100% written by AI.
8586

8687
### Prompt usage hitory:
8788
* Model Claude Opus 4.6: Initially solid-panes is loaded into an HTML shell form mashlib that looks like ... Also, an iFrame is rendered inside the `<div class="TabulatorOutline" id="DummyUUID">` for “isolated pane rendering”. Analyze the solid-panes code for what it uses from this HTML and suggest a new HTML structure which is mobile and accessibility friendly. Let's go ahead and make changes in this code as suggested to accommodate the new databrowser HTML.
@@ -121,4 +122,3 @@ I want the menu to have a tiny button on the bottom margin left with an arrow to
121122
* Raptor mini: Please always keep the footer at the bottom of the menu
122123

123124
* GPT-5.4 Model: Add a compatibility shim in the form pane for mixed `ui:Group` plus field typing.
124-

babel.config.mjs

Lines changed: 0 additions & 21 deletions
This file was deleted.

dev/dev-light.css

Lines changed: 0 additions & 320 deletions
This file was deleted.

0 commit comments

Comments
 (0)