Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
ffe83c1
Dynamic Display Update
ImSpeddy Feb 7, 2025
5b3a384
Merge pull request #2 from ImSpeddy/feature/dynamic-display-update
ImSpeddy Feb 7, 2025
1ee2c27
Add developer scripts
ImSpeddy Feb 8, 2025
e9ea3e1
Update .prettierrc
ImSpeddy Feb 8, 2025
7e8bf20
Merge pull request #3 from ImSpeddy/feature/dev-scripts
ImSpeddy Feb 8, 2025
9bda46b
Add Highlights
ImSpeddy Mar 5, 2025
6bf9e9b
Change textarea to div
ImSpeddy Mar 5, 2025
57d67c6
Rework cursor when highlighting
ImSpeddy Mar 5, 2025
a847997
Highlight rework pt1
ImSpeddy Mar 10, 2025
06c2beb
Correct highlighter call
ImSpeddy Mar 10, 2025
9ba7fe4
Highlighter Rework
ImSpeddy Mar 10, 2025
d6def51
Merge branch 'dev' into feature/code-highliter
ImSpeddy Mar 10, 2025
7b283ef
Merge pull request #4 from ImSpeddy/feature/code-highliter
ImSpeddy Mar 10, 2025
911306f
Add CSS, TS, JSX, HTML / JSON
ImSpeddy Mar 11, 2025
73e12a9
Add more language support
ImSpeddy Mar 14, 2025
edcd96b
Merge pull request #5 from ImSpeddy/feature/more-language-highlight
ImSpeddy Mar 14, 2025
91eb765
Clean up
ImSpeddy Mar 14, 2025
2195e45
Handle file closing
ImSpeddy Mar 14, 2025
709ad27
Create not saved condition
ImSpeddy Mar 14, 2025
381fddb
Create and Handle Save Dialog
ImSpeddy Mar 24, 2025
7b1146b
Merge pull request #6 from ImSpeddy/feature/handle-file-closing
ImSpeddy Mar 24, 2025
bec6bee
Disable spellcheck
ImSpeddy Mar 25, 2025
b96724e
Preserve Scroll and Cursor position
ImSpeddy Apr 1, 2025
75aeb27
Merge pull request #7 from ImSpeddy/feature/preserve-line
ImSpeddy Apr 1, 2025
f1c864e
Create TODOs
ImSpeddy Apr 1, 2025
0bc6ad7
Mark unsaved file
ImSpeddy Apr 1, 2025
b077bb4
Remove TODO
ImSpeddy Apr 1, 2025
5848d76
Merge pull request #8 from ImSpeddy/feature/mark-unsaved-file
ImSpeddy Apr 1, 2025
5540866
Update TODOs
ImSpeddy Apr 1, 2025
3dc3cfe
Add Keyboard Shortcuts
ImSpeddy Apr 2, 2025
1ac93fc
Update TODOs
ImSpeddy Apr 2, 2025
370912d
Fix key combinations
ImSpeddy Apr 4, 2025
eaa480e
Fix TODOs Conflicts
ImSpeddy Apr 4, 2025
788671e
Handle file closing shortcut
ImSpeddy Apr 4, 2025
f19c4ae
Update TODOs
ImSpeddy Apr 4, 2025
de8ef90
Alt Change Tabs
ImSpeddy Apr 7, 2025
a1f5aac
Merge pull request #9 from ImSpeddy/feature/alt-change-tabs
ImSpeddy Apr 7, 2025
30490eb
Create Buttons
ImSpeddy Apr 7, 2025
3946804
Prevent closing window upon file closing
ImSpeddy Apr 9, 2025
a85c82b
Hide field upon closing all tabs
ImSpeddy Apr 9, 2025
012f749
Hide text area upon no files opened
ImSpeddy Apr 10, 2025
b71a3ea
Integrate NewFileDialog to Editor
ImSpeddy Apr 10, 2025
536315f
Open a viewer from the editor
ImSpeddy Apr 10, 2025
c03cf35
Move dialogs and main screen to editor
ImSpeddy Apr 10, 2025
8ff6243
Merge pull request #10 from ImSpeddy/feature/html-dialogs
ImSpeddy Apr 10, 2025
72eadc7
Remove unknown library
ImSpeddy Apr 10, 2025
127f8eb
Bugfix - Window remains open when closing
ImSpeddy Apr 10, 2025
23174b8
Merge pull request #11 from ImSpeddy/bugfix/window-remains-open-upon-…
ImSpeddy Apr 10, 2025
9260429
Remove TODO
ImSpeddy Apr 11, 2025
bc6c8fd
TODO Update
ImSpeddy Apr 23, 2025
ea11fce
FIX: Files become single lined
ImSpeddy Apr 23, 2025
2b2c892
Merge pull request #12 from ImSpeddy/bugfix/single-lined-files
ImSpeddy Apr 23, 2025
8baa310
Update TODOs
ImSpeddy Apr 23, 2025
1359ac0
Update TODOs
ImSpeddy Apr 23, 2025
f612610
FIX: OpenedFiles Data cleared upon closing file.
ImSpeddy Apr 23, 2025
089ad68
Set version
ImSpeddy Apr 23, 2025
8f67457
Create workflows
ImSpeddy Apr 24, 2025
25481ea
Merge pull request #13 from ImSpeddy/feature/github-actions
ImSpeddy Apr 24, 2025
42948ca
Add Globals
ImSpeddy Apr 24, 2025
e240911
Properly define fileData
ImSpeddy Apr 24, 2025
496cd13
Fix Prettier Workflow
ImSpeddy Apr 24, 2025
9873290
Give permissions to the workflows
ImSpeddy Apr 24, 2025
049f0af
Update .prettierignore
ImSpeddy Apr 24, 2025
b3bbdcb
Prettified Code!
ImSpeddy Apr 24, 2025
68db40c
Update lintpretty.yml
ImSpeddy Apr 24, 2025
9df9955
Workflow Test
ImSpeddy Apr 24, 2025
f08bd9c
Prettified Code!
ImSpeddy Apr 24, 2025
67248b7
Run prettier manually
ImSpeddy Apr 24, 2025
8d0037a
Prettier Workflow Test
ImSpeddy Apr 24, 2025
c0c22d0
WF: Lint and Prettier: Prettier Workflow Test
actions-user Apr 24, 2025
be4113c
Bugfix: Area hidden upon closing current file
ImSpeddy Apr 24, 2025
15a359d
WF: Lint and Prettier: Bugfix: Area hidden upon closing current file
actions-user Apr 24, 2025
99b18ec
Update build.yml
ImSpeddy Apr 24, 2025
6b4ac08
Update workflows for the 100th time
ImSpeddy Apr 24, 2025
f3c0668
WF: Lint and Prettier: Update workflows for the 100th time
actions-user Apr 24, 2025
9589bf5
Update workflows for the 101th time
ImSpeddy Apr 24, 2025
5d38479
Update workflows for the 102th time
ImSpeddy Apr 24, 2025
798b4c1
WF: Lint and Prettier: Update workflows for the 102th time
actions-user Apr 24, 2025
8999d9b
Update Workflow
ImSpeddy Apr 24, 2025
441c32c
Merge branch 'dev' of https://github.com/ImSpeddy/MyHTMLEditor into dev
ImSpeddy Apr 24, 2025
a52d94a
Update build.yml
ImSpeddy Apr 24, 2025
f40ad32
Separate Build Workflows
ImSpeddy Apr 24, 2025
54e0002
Update build-windows.yml
ImSpeddy Apr 24, 2025
feb4abb
Build Workflow permission set
ImSpeddy Apr 24, 2025
c5bca5e
Merge all build scripts
ImSpeddy Apr 24, 2025
6e9a8f9
Update build.yml
ImSpeddy Apr 24, 2025
607e34c
Update build.yml
ImSpeddy Apr 24, 2025
2fc058c
Update electron-builder.json
ImSpeddy Apr 24, 2025
63e39e6
Update electron-builder.json
ImSpeddy Apr 24, 2025
aa8f4ac
Update Builder
ImSpeddy Apr 24, 2025
4f7f0a9
WF: Lint and Prettier: Update Builder
actions-user Apr 24, 2025
5498c2f
Change Linux build type
ImSpeddy Apr 24, 2025
939efaf
Update build.yml
ImSpeddy Apr 24, 2025
2db1720
Cleanup
ImSpeddy Apr 28, 2025
b749d38
Manual Lint
ImSpeddy Apr 28, 2025
9f342cf
Merge pull request #17 from ImSpeddy/cleanup
ImSpeddy Apr 28, 2025
bc2f3e7
BUGFIX: File marked as unsaved
ImSpeddy Apr 30, 2025
8957f51
Merge pull request #20 from ImSpeddy/bugfix/file-marked-as-modified-w…
ImSpeddy Apr 30, 2025
c80125f
Create index
ImSpeddy Apr 30, 2025
dfb9e51
Create Save Dialog
ImSpeddy Apr 30, 2025
d403c2b
Bugfix: Closing a file deletes OpenedFiles.#DATA
ImSpeddy Apr 30, 2025
b45335c
Merge pull request #21 from ImSpeddy/bugfix/closing-a-file-deletes-al…
ImSpeddy Apr 30, 2025
7f1211d
WF: Lint and Prettier: Merge pull request #21 from ImSpeddy/bugfix/cl…
actions-user Apr 30, 2025
8320935
Remove TODOs
ImSpeddy May 2, 2025
4a3bcb1
Refresh Editor reloads original file
ImSpeddy May 2, 2025
31e0a8c
Merge pull request #23
ImSpeddy May 2, 2025
f1cf06c
WF: Lint and Prettier: Merge pull request #23
actions-user May 2, 2025
1941a48
Branding
ImSpeddy May 3, 2025
c85d15e
Add Branding
ImSpeddy May 3, 2025
6375df3
Merge pull request #24 from ImSpeddy/feature/rename
ImSpeddy May 3, 2025
412e893
Update TODOs
ImSpeddy May 3, 2025
a0db831
Fix trailing img tag
ImSpeddy May 3, 2025
ebd0c49
WF: Lint and Prettier: Fix trailing img tag
actions-user May 3, 2025
7c6f8c1
Reorganize
ImSpeddy May 3, 2025
51562c4
WF: Lint and Prettier: Reorganize
actions-user May 3, 2025
cb267d1
Added window close forcing
ImSpeddy May 3, 2025
19bdfba
Merge pull request #25 from ImSpeddy/feature/app-does-not-close-compl…
ImSpeddy May 3, 2025
ffe16dc
WF: Lint and Prettier: Merge pull request #25 from ImSpeddy/feature/a…
actions-user May 3, 2025
a74c8e3
Update .hintrc
ImSpeddy May 4, 2025
d64b418
Start tracking displays with fileLinks instead of windows
ImSpeddy May 4, 2025
889b234
Add some order
ImSpeddy May 4, 2025
f529f01
Add TODO
ImSpeddy May 5, 2025
6c622de
Rework Highlighter
ImSpeddy May 5, 2025
afb8052
Unlink Opened Editors
ImSpeddy May 5, 2025
c30026d
Contemplates more than one editor linked to the same display
ImSpeddy May 5, 2025
56bfae4
WF: Lint and Prettier: Bugfix/viewer and files dont unsync when closed
actions-user May 5, 2025
c496623
Merge pull request #30 from ImSpeddy/bugfix/viewer-and-files-dont-uns…
ImSpeddy May 5, 2025
8b72780
Show version upon opening
ImSpeddy May 5, 2025
8ba1e65
WF: Lint and Prettier: Show version upon opening
actions-user May 5, 2025
574e921
Show window on front upon refresh
ImSpeddy May 6, 2025
16e0a48
Merge pull request #32 from ImSpeddy/feature/refreshing-window-brings…
ImSpeddy May 6, 2025
ccfb59d
WF: Lint and Prettier: Merge pull request #32 from ImSpeddy/feature/r…
actions-user May 6, 2025
139505b
Delete resources/icon/icon.ico
ImSpeddy May 6, 2025
15f57ed
Add files via upload
ImSpeddy May 6, 2025
d18b49a
Update electron-builder.json
ImSpeddy May 7, 2025
b2cc812
Fix file creation flow
ImSpeddy May 7, 2025
2833483
WF: Lint and Prettier: Fix file creation flow
actions-user May 7, 2025
2ea8609
Remove WriteFile callback
ImSpeddy May 7, 2025
c2be0b5
Merge pull request #37 from ImSpeddy/bugfix/newly-created-files-do-no…
ImSpeddy May 7, 2025
a849cbb
Files marked unsaved when not edited (#38)
ImSpeddy May 9, 2025
5ec66e6
WF: Lint and Prettier: Files marked unsaved when not edited (#38)
actions-user May 9, 2025
f0135f9
Update package.json
MayraLLC May 9, 2025
96d5109
WF: Lint and Prettier: Update package.json
actions-user May 9, 2025
18e963a
Create Script System
ImSpeddy May 10, 2025
c39e84a
Add compatibility to fileStringFunctions module
ImSpeddy May 10, 2025
afe554f
Provide OS compatibility with Path
ImSpeddy May 10, 2025
7f2cc38
WF: Lint and Prettier: Bugfix/linux build states lack of permissions …
actions-user May 10, 2025
e0f9bc1
Add "rc" tag compatibility to build script
ImSpeddy May 10, 2025
ab774e7
Update package.json to 1.0.0-rc1
ImSpeddy May 10, 2025
ec1d4eb
WF: Lint and Prettier: Update package.json to 1.0.0-rc1
actions-user May 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build

on:
push:
tags:
- 'v*'
- 'v*-prerelease'
- 'v*-dev'
- 'v*-rc*'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '23'

- name: Install Dependencies
run: npm install

- name: Build app
run: npx electron-builder
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build Mac x64
if: matrix.os == 'macos-latest'
run: npx electron-builder --mac --x64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: |
dist/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81 changes: 81 additions & 0 deletions .github/workflows/lintpretty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: ESLint and Prettier

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
lint_and_prettier:
runs-on: ubuntu-latest

permissions:
contents: write # Ensure write permissions to push changes

steps:
- name: Skip if commit is from workflow (prevents recursion)
if: startsWith(github.event.head_commit.message, 'WF:') # Skip workflow-triggered commits
run: |
echo "Skipping commit because it is a workflow-triggered commit"
exit 0 # Exit early to avoid committing changes again

- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }} # Ensures the correct branch is checked out for PRs

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '23' # Set the Node.js version (you can change it as per your requirement)

- name: Install dependencies
run: |
npm install

- name: Run ESLint with auto-fix
run: |
npx eslint --fix . # Lint the code and automatically fix issues

- name: Run Prettier
run: |
npx prettier --write '**/*.{js,json,html,css}'

- name: Set up Git credentials
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"

- name: Commit linted and prettified code with prefix
run: |
# Check if there are any changes
if [[ -n $(git status --porcelain) ]]; then
# There are changes, commit them
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"

# Determine commit message based on event type
if [[ "${{ github.event_name }}" == "push" ]]; then
# For push events, use the commit message that triggered the push
ORIGINAL_COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
# For PR events, use the PR title
ORIGINAL_COMMIT_MESSAGE="${{ github.event.pull_request.title }}"
fi

# Create a commit message with a prefix and original commit message
COMMIT_MESSAGE="WF: Lint and Prettier: ${ORIGINAL_COMMIT_MESSAGE}"

# Add changes and commit with the new message
git add .
git commit -m "$COMMIT_MESSAGE"
git push
else
# No changes, skip commit
echo "No changes to commit"
fi
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
node_modules
.prettierignore
.prettierrc
eslint.config.mjs
buglist
featuremindstorm
lint.bat
pretty.bat
dist
test
10 changes: 10 additions & 0 deletions .hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": [
"development"
],
"hints": {
"compat-api/css": "off",
"no-inline-styles": "off",
"axe/text-alternatives": "off"
}
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.github
21 changes: 21 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"semi": true,
"experimentalTernaries": false,
"singleQuote": false,
"jsxSingleQuote": false,
"quoteProps": "as-needed",
"trailingComma": "none",
"singleAttributePerLine": false,
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"proseWrap": "preserve",
"insertPragma": false,
"printWidth": 80,
"requirePragma": false,
"tabWidth": 2,
"useTabs": true,
"embeddedLanguageFormatting": "auto"
}
10 changes: 10 additions & 0 deletions TODOs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
= for VERSION 1.0 =
Branding
Create README

BUGS:
Blank lines counted as double at the end of the file

= for VERSION 1.1 =
Save last state of the editor upon close
Dynamic Skins
28 changes: 28 additions & 0 deletions electron-builder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"appId": "com.speddy.webbox",
"productName": "webbox",
"directories": {
"output": "dist"
},
"files": ["!filePresets/**", "!front/editor/highlighter.css"],
"extraResources": [
{ "from": "filePresets", "to": "../filePresets" },
{
"from": "front/editor/highlighter.css",
"to": "../front/editor/highlighter.css"
}
],
"icon": "resources/icon/icon.png",
"win": {
"target": "zip",
"artifactName": "webbox-${version}-win.zip"
},
"mac": {
"target": "zip",
"artifactName": "webbox-${version}-mac-${arch}.zip"
},
"linux": {
"target": "zip",
"artifactName": "webbox-${version}-linux.zip"
}
}
11 changes: 11 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
eslintConfigPrettier
];
Loading