Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
4164da6
Moved v2 components/code into separate folder
Lorthiz May 21, 2024
031b6a2
Removed .idea folder
Lorthiz May 21, 2024
22c8929
Moved V2 worker to it's folder
Lorthiz May 21, 2024
ad9f14a
Removed VSCode configs
Lorthiz May 23, 2024
00de95f
Removed VisualStudio project files
Lorthiz May 23, 2024
15676c2
Removed unused files
Lorthiz May 23, 2024
d10b461
Fixed build after changes to V2, removed unused files, addes basic lo…
Lorthiz May 23, 2024
a50fff9
Refactor of export to JSON function
Lorthiz May 22, 2024
39f3883
Extracting map interface for IExportedValue Mappers
Lorthiz May 23, 2024
4f5ba8f
Initial cleanup of FileSystems and file tree
Lorthiz Jun 5, 2024
476b36e
Fixed problem after rebase
Lorthiz Jun 5, 2024
4234f88
Removed V2 from the project
Lorthiz Jun 5, 2024
f6df526
Removed custom extensions
Lorthiz Jun 7, 2024
72b891c
Removed extensions file and replaced it's methods with services, spli…
Lorthiz Jun 8, 2024
2f7ade2
Created FileActionsWrapper for downloading/saving files
Lorthiz Jun 8, 2024
2d3ca11
Deconstructed Paths object to simple object
Lorthiz Jun 8, 2024
cffe97b
Moved processing uploaded files to FileActionsWrapper
Lorthiz Jun 8, 2024
2dd074c
Extracted file upload processes, refactor of jquery FileDrop and File…
Lorthiz Jun 8, 2024
03091cb
Fixes to build errors
Lorthiz Jun 8, 2024
08077f2
Refactor of flatten function for IExportedValue
Lorthiz Jun 8, 2024
061bccb
Fix for fileTree not loading
Lorthiz Jun 8, 2024
99203ce
Improvements to extensions.ts
Lorthiz Jun 8, 2024
b604e73
Refactor of AceEditor creating, extracted LayoutManager to separate file
Lorthiz Jun 8, 2024
e88ca94
Improved error logging
Lorthiz Jun 9, 2024
5c230ab
Removed some strange references to types
Lorthiz Jun 9, 2024
758c9d3
Further refactor to GoldenLayout
Lorthiz Jun 9, 2024
a10de7c
Moved export to json function to utils
Lorthiz Jun 9, 2024
ff1d060
Added wrapper for localstorage lib
Lorthiz Jun 10, 2024
aabd97b
Initial work on switching to parcel-bundler
Lorthiz Jun 11, 2024
3d8d227
Refactoring build process, removing /lib/_npm folder, fixing generati…
Lorthiz Jun 12, 2024
a95afa1
Small improvements to app loading when generated formats/samples are …
Lorthiz Jun 17, 2024
9699c7d
Initial split to vue components
Lorthiz Jun 19, 2024
1018524
Rewritten HexViewer to Vue component
Lorthiz Jun 24, 2024
ca6676f
Improvements to HexViewer selection, added arrow keys navigation
Lorthiz Jun 25, 2024
2264c61
Improvements to HexViewer selection, added dark theme, refactor of In…
Lorthiz Jun 27, 2024
e8bec95
Fixes done by Petr, applied to V3 branch
Lorthiz Jun 27, 2024
3b8631f
Added deployment script for pages
Lorthiz Jun 27, 2024
7c381ee
Fix for workflow yaml
Lorthiz Jun 27, 2024
076cc6b
Fixed branch name in workflow
Lorthiz Jun 27, 2024
b1f651d
Added submodules loading during build
Lorthiz Jun 27, 2024
d615e03
Commented out newest compiler
Lorthiz Jun 27, 2024
80c5fd9
Added license to output, removed comment from workflow
Lorthiz Jun 27, 2024
e794d02
Fixed problems with instancesByJsName, IdeSettings state is now saved…
Lorthiz Jun 27, 2024
6d45fdb
Fixed problem with flags contained inside one byte not being marked a…
Lorthiz Jun 30, 2024
a053fb2
Initial work on ParsedTree
Lorthiz Aug 23, 2024
7ee4591
Small fix to types
Lorthiz Aug 25, 2024
e599681
Removed old HexViewer.css
Lorthiz Aug 27, 2024
1193f00
Initial work on FileTree, refactor of Compile grammar service
Lorthiz Sep 1, 2024
845e914
Small updates to welcome modal and licenses
Lorthiz Sep 1, 2024
1e87ae4
Removed unused boolean
Lorthiz Sep 1, 2024
9c462fb
Improvements to KsyEditorActions
Lorthiz Sep 2, 2024
2457b80
Improved visitor method name
Lorthiz Sep 2, 2024
a406f1b
Added semicolon
Lorthiz Oct 12, 2024
dabda9a
Added export statement for interface IDebugInfo
Lorthiz Oct 12, 2024
1011310
Vastly improved HexEditor render speeds/actions, rewritten FileDrop t…
Lorthiz Oct 12, 2024
4cc2bc3
Huge improvement to odd/even rows grouping
Lorthiz Oct 12, 2024
8ac9152
Removed OddEven leafs grouping, implemented binary search instead, fu…
Lorthiz Oct 13, 2024
3421f47
Removed yaml-js dependency, updated requirejs lib, regenerated license
Lorthiz Oct 13, 2024
6e3714a
Fixes to global imports
Lorthiz Oct 13, 2024
55e64d4
Added sorting for file list
Lorthiz Oct 13, 2024
f7f135f
Added logging to File upload
Lorthiz Oct 13, 2024
d3847fd
Fixed logging
Lorthiz Oct 13, 2024
94a1b10
Added context menu to HexViewer, moved all golden layout management t…
Lorthiz Oct 13, 2024
9292c34
Added --no-optimize flag to fix not working context menus
Lorthiz Oct 13, 2024
85b3583
Added title renaming for hex-viewer tab
Lorthiz Oct 14, 2024
88842d7
Fixing ugly scrollbars in chrome
Lorthiz Oct 14, 2024
adf18fd
increased scrollbar width/height to fix problems with grabbing scrollbar
Lorthiz Oct 14, 2024
cd1aa35
Improvements to HexViewer ContextMenu, small fixes
Lorthiz Oct 14, 2024
d03fb7f
Removed InputContextMenu
Lorthiz Oct 14, 2024
936b773
Added spacer for FileTree because scrollbar was getting in a way to s…
Lorthiz Oct 14, 2024
d77f38e
Added context menu to FileTreeNodes,
Lorthiz Oct 14, 2024
c6faebb
Refactoring FileSystems, added new ctx menu actions To CreateDirector…
Lorthiz Oct 15, 2024
2a7f73e
Projects sources cleanup, moving files to their respective locations
Lorthiz Oct 16, 2024
a7a4164
Fixed build script
Lorthiz Oct 16, 2024
a8fc8f4
Removing not used libraries
Lorthiz Oct 16, 2024
0988511
Removing not used libraries
Lorthiz Oct 16, 2024
9769031
Moved docs folder, added Github pages passing badge
Lorthiz Oct 16, 2024
c9d3553
Fixed problems after moving docs folder
Lorthiz Oct 16, 2024
8a94162
Fix for Deploy to GH Pages in README.md
Lorthiz Oct 16, 2024
3a77987
Removed accidentally commited changes
Lorthiz Oct 16, 2024
d15af7f
Fixed redirect to https, styles placement adjustment
Lorthiz Oct 16, 2024
69a820e
Moved host to env variables
Lorthiz Oct 16, 2024
98a5e91
Moved build scripts to dedicated folder, removed generated license
Lorthiz Oct 16, 2024
df6c04d
Removed submodule
Lorthiz Oct 16, 2024
85d7da3
Moved formats submodule directly to public folder
Lorthiz Oct 16, 2024
99e101d
Renamed website, removed not needed gitattributes file
Lorthiz Oct 16, 2024
889f13f
Fix for build, updated readme
Lorthiz Oct 16, 2024
9d689ab
Fixed path including 'public/' during format/samples generation
Lorthiz Oct 16, 2024
2f71b95
Fixed redirect to https
Lorthiz Oct 16, 2024
646f7a2
Fixed redirect to https
Lorthiz Oct 16, 2024
89758dc
Fixed redirect to https
Lorthiz Oct 16, 2024
6d60af0
Fixed redirect to https
Lorthiz Oct 16, 2024
ea493cd
Improvement to redirectToHttps, so it does not load any libraries bef…
Lorthiz Oct 16, 2024
8a013a3
Added functionality to create new Ksy files
Lorthiz Oct 16, 2024
ac892a8
Fix build
Lorthiz Oct 16, 2024
7fde2f2
Removed dependencies to FontAwesome(unused), Bootstrap and bootswatch…
Lorthiz Oct 17, 2024
faa4731
Fixed license yaml
Lorthiz Oct 17, 2024
d02f37e
Changed editor to Monaco
Lorthiz Oct 17, 2024
a67e83a
Removed unused dev dependencies
Lorthiz Oct 17, 2024
8d5c2c0
Fixed problems after creating Ksy not saving in localforage, and fold…
Lorthiz Oct 18, 2024
6f07247
Removed FileTree bottom buttons
Lorthiz Oct 18, 2024
735a128
Fixed Create new Ksy action
Lorthiz Oct 18, 2024
944f935
Added more advanced template for new Ksy files
Lorthiz Oct 18, 2024
0565c76
Added jump to selection start/end actions on HexViewer
Lorthiz Oct 18, 2024
00bade3
Build optimization
Lorthiz Oct 18, 2024
d5b47d0
Added Rust language generation
Lorthiz Oct 19, 2024
0619be4
Fix to package-lock.json
Lorthiz Oct 19, 2024
67680e8
Added rename action, refactor of how paths are handled by FileSystemPath
Lorthiz Oct 19, 2024
2c6a448
Added proper way to restore old configs, only appearing in local envi…
Lorthiz Oct 20, 2024
7ded881
Improved documentation on how to restore old config
Lorthiz Oct 20, 2024
19d11aa
Added script for getting backup from official IDE, small improvements…
Lorthiz Oct 20, 2024
cefcea7
Added highlight on FileTree for files loaded in editors
Lorthiz Oct 20, 2024
44dcfde
Fix for restore command uploading files from non existing directroy
Lorthiz Oct 20, 2024
a307751
Removed not needed files from build
Lorthiz Oct 21, 2024
e12e9ac
Added drag&drop functionality on FileTree, upgraded versions of libra…
Lorthiz Oct 22, 2024
ecbca39
Fixed build scripts after switching package.json type to module
Lorthiz Oct 22, 2024
0f4b3ee
Fixed build scripts after switching package.json type to module - gen…
Lorthiz Oct 22, 2024
a2742fd
Switching Kaitai Worker type to module
Lorthiz Oct 23, 2024
a6c2039
Fixed labels in converter panel
Lorthiz Nov 17, 2024
d813a40
Improvements to FileDragNDrop
Lorthiz Nov 17, 2024
37e9a54
ESLint switch
Lorthiz Nov 17, 2024
7afed17
Refactoring Code Worker, extracting EvaluatedCodeScope.ts, Adding tes…
Lorthiz Nov 17, 2024
3910a7b
Restored Error tab, small improvements to GoldenLayoutUI and GoldenLa…
Lorthiz Nov 19, 2024
3cbc575
Improvements and fixes to Error Tab
Lorthiz Nov 20, 2024
9d6adcf
Rewritten ParsedTree to VirtualList, added scrollTo functionality for…
Lorthiz Mar 29, 2025
f863be4
Updated git workflows
Lorthiz Mar 29, 2025
039c42b
Removed big-int dependency
Lorthiz Mar 30, 2025
902a8af
Extended download functionality to allow for downloading folders from…
Lorthiz Mar 30, 2025
0ea3064
Replaced GoldenLayout library with more modern Dockview, and removed …
Lorthiz Apr 1, 2025
e09272b
Fixed Github SHA variable
Lorthiz Apr 1, 2025
5ddf723
Fixed Github SHA variable v2
Lorthiz Apr 1, 2025
1bcdcf5
Fixed Github SHA variable v3
Lorthiz Apr 1, 2025
4abdc14
Fixed Github SHA variable v4
Lorthiz Apr 1, 2025
a50ca2f
Added saving and loading of selected files in FileTree, improved beha…
Lorthiz Apr 2, 2025
5e6940b
Fix to weird behaviour regarding worker in Chromium browsers
Lorthiz Apr 3, 2025
5cb1be9
Improvements to error panel
Lorthiz Apr 3, 2025
e27425c
Added initialize step before loading app to get rid of errors regardi…
Lorthiz Apr 16, 2025
d38a10f
Added update scripts to schema(file systems). Filesystems refactor an…
Lorthiz May 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
HOST=kaitai.lorthiz.ovh
GIT_COMMIT=UNKNOWN
BUILD_DATE=01.04.2025
INIT_TIMEOUT=1000
63 changes: 0 additions & 63 deletions .gitattributes

This file was deleted.

123 changes: 56 additions & 67 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
name: build

# If this CI run was triggered via `repository_dispatch` from
# https://github.com/kaitai-io/kaitai_struct, change the run name so that it's
# not just "rebuild". Otherwise, return an empty string so that GitHub keeps the
# default name.
run-name: |
${{ (github.event_name == 'repository_dispatch' &&
github.event.action == 'rebuild' &&
github.event.client_payload.ksc_version) &&
format('Build with kaitai-struct-compiler {0}', github.event.client_payload.ksc_version) ||
'' }}
name: Deploy to Pages

on:
# Runs on pushes targeting the default branch
push:
branches:
- master
- stable
branches: [ "v3-refactor" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow this workflow to be run on the `master` branch when a webhook event
# called `repository_dispatch` is triggered. This is used from the CI workflow
# in https://github.com/kaitai-io/kaitai_struct to rebuild the devel Web IDE
# after a new version of KSC is published to npm.
repository_dispatch:
types:
- rebuild
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
Expand All @@ -32,55 +27,49 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4

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

- name: Use appropriate versions of KSC and JS runtime
env:
DIST_TAG: ${{ github.ref == 'refs/heads/master' && 'next' || 'latest' }}
# `--package-lock-only` means that it only updates `package-lock.json`
# (and `package.json`) without touching `node_modules/` at all.
run: |
npm install --package-lock-only kaitai-struct-compiler@"$DIST_TAG" kaitai-struct@"$DIST_TAG"
- name: Setup Pages
uses: actions/configure-pages@v3

# NOTE: it's important that `npm ci` is run *after* the adjustment of
# KSC's and JS runtime's versions so that the `install` script (`node
# vendor_build.js`) copies the correct versions into the `lib/_npm/`
# folder which will be deployed.
- run: npm ci

- name: Set up environment variables for stable deployment
run: |
echo 'SENTRY_ENV=stable' >> "$GITHUB_ENV"
if: github.ref == 'refs/heads/stable'
- name: Set up environment variables for devel deployment
- name: Generate license, formats and build project
env:
GIT_COMMIT: ${{ github.sha }}
BUILD_DATE: ${{ github.event.repository.updated_at}}
run: |
echo 'SENTRY_ENV=devel' >> "$GITHUB_ENV"
if: github.ref == 'refs/heads/master'
npm run generate-license
npm run generate-formats
npm run parcel-build

- name: Build
env:
SENTRY_DSN: 'https://[email protected]/202888'
run: ./build
- name: Deploy
env:
BOT_SSH_KEY: ${{secrets.BOT_SSH_KEY}}
OUTDIR: ${{ github.ref == 'refs/heads/master' && 'devel' || '' }}
- name: Remove not needed files from build
run: |
./push_artifacts/git_config_kaitai_bot
./push_artifacts/publish \
-o kaitai-io \
-r ide-kaitai-io.github.io \
-d "$OUTDIR" \
-m "Regen ${GITHUB_REF#refs/heads/*} $GITHUB_REPOSITORY@$GITHUB_SHA" \
-- \
--exclude=.git \
--exclude=.github/ \
--exclude=.nojekyll \
--exclude=_build/ \
--exclude=CNAME \
--exclude=favicon.ico \
--exclude=favicon.ico.license \
--exclude=devel/ \
out/
rm -rf ./dist/formats/github
rm -rf ./dist/formats/_build
rm -rf ./dist/formats/.editorconfig
rm -rf ./dist/formats/.git
rm -rf ./dist/formats/.gitattributes
rm -rf ./dist/formats/.gitmodules
rm -rf ./dist/formats/CONTRIBUTING.md
rm -rf ./dist/formats/README.md

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist


deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading