Skip to content

Clean up and update the project for readability and best practices#7

Merged
carloshm merged 1 commit intomainfrom
carloshm/update-pora
May 18, 2025
Merged

Clean up and update the project for readability and best practices#7
carloshm merged 1 commit intomainfrom
carloshm/update-pora

Conversation

@carloshm
Copy link
Contributor

@carloshm carloshm commented May 18, 2025

Clean up and update the project for readability, best practices, and using React and Tiptap example.

  • Remove obsolete files and references:

    • Delete macos-editor/renderer.js.
    • Delete macos-editor/src/index.jsx.
    • Delete macos-editor/splash.html.
    • Remove reference to renderer.js in macos-editor/index.html.
    • Remove preload.js reference from webPreferences in macos-editor/main.js.
    • Remove createSplashWindow function and its references in macos-editor/main.js.
  • Refactor and update code:

    • Refactor createWindow function to use async/await in macos-editor/main.js.
    • Update Tiptap extensions and add a toolbar with buttons for Tiptap commands in macos-editor/src/index.tsx.
  • Update dependencies and scripts:

    • Update dependencies in macos-editor/package.json to align with the Tiptap example.
    • Update scripts in macos-editor/package.json to use tsc and esbuild for building the project.

For more details, open the Copilot Workspace session.

Clean up and update the project for readability, best practices, and using React and Tiptap example.

* **Remove obsolete files and references:**
  - Delete `macos-editor/renderer.js`.
  - Delete `macos-editor/src/index.jsx`.
  - Delete `macos-editor/splash.html`.
  - Remove reference to `renderer.js` in `macos-editor/index.html`.
  - Remove `preload.js` reference from `webPreferences` in `macos-editor/main.js`.
  - Remove `createSplashWindow` function and its references in `macos-editor/main.js`.

* **Refactor and update code:**
  - Refactor `createWindow` function to use async/await in `macos-editor/main.js`.
  - Update Tiptap extensions and add a toolbar with buttons for Tiptap commands in `macos-editor/src/index.tsx`.

* **Update dependencies and scripts:**
  - Update dependencies in `macos-editor/package.json` to align with the Tiptap example.
  - Update scripts in `macos-editor/package.json` to use `tsc` and `esbuild` for building the project.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/espora-net/pora/tree/main?shareId=XXXX-XXXX-XXXX-XXXX).
@carloshm carloshm merged commit b93749f into main May 18, 2025
1 of 2 checks passed
@carloshm carloshm deleted the carloshm/update-pora branch May 18, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant