Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ updates:
- "dependencies"
- package-ecosystem: "npm"
target-branch: "main"
directory: "/Frontend/WebEditor"
directory: "/frontend/webEditor"
schedule:
interval: "weekly"
day: "wednesday"
Expand All @@ -28,7 +28,7 @@ updates:
- "dependencies"
- package-ecosystem: "maven"
target-branch: "main"
directory: "/Backend/AnalysisBackendServer"
directory: "/backend/analysisBackendServer"
schedule:
interval: "weekly"
day: "wednesday"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/backendUpdatesite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
with:
maven-version: 3.9.6
- name: Build and Verify
working-directory: Backend/AnalysisBackendServer
working-directory: backend/analysisBackendServer
run: mvn clean verify
- name: Publish Nightly Update Site
if: github.event_name != 'release' && github.ref == 'refs/heads/main' && github.repository_owner == 'DataFlowAnalysis'
uses: peaceiris/actions-gh-pages@v4
with:
path: Backend/AnalysisBackendServer
path: backend/analysisBackendServer
deploy_key: ${{ secrets.UPDATE_SITE_DEPLOY_KEY }}
external_repository: DataFlowAnalysis/updatesite
destination_dir: nightly/analysis-backend-server/
Expand All @@ -42,7 +42,7 @@ jobs:
if: github.event_name == 'release' && github.repository_owner == 'DataFlowAnalysis'
uses: peaceiris/actions-gh-pages@v4
with:
path: Backend/AnalysisBackendServer
path: backend/analysisBackendServer
deploy_key: ${{ secrets.UPDATE_SITE_DEPLOY_KEY }}
external_repository: DataFlowAnalysis/updatesite
destination_dir: release/analysis-backend-server/${{ github.event.release.tag_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checkFormat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
node-version: "22"

- name: Install and Lint
working-directory: Frontend/WebEditor
working-directory: frontend/webEditor
run: |
npm install
npx prettier --check ./**/*.html
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checkLint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
node-version: "22"

- name: Install and Lint
working-directory: Frontend/WebEditor
working-directory: frontend/webEditor
run: |
npm install
npm run lint
8 changes: 4 additions & 4 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ jobs:
with:
node-version: 20.x
cache: npm
cache-dependency-path: Frontend/WebEditor/package-lock.json
cache-dependency-path: frontend/webEditor/package-lock.json

- name: Install dependencies
working-directory: Frontend/WebEditor
working-directory: frontend/webEditor
run: npm install

- name: Build project
working-directory: Frontend/WebEditor
working-directory: frontend/webEditor
run: npm run build

- name: Upload Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: "./Frontend/WebEditor/dist/"
path: "./frontend/webEditor/dist/"

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/pagesWebConverter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build using vite and deploy to GitHub Pages when on master

on:
- push

# Configures premissions for the used GitHub Token that are required for Pages.
permissions:
contents: read # To get the source
pages: write # To deploy to pages
id-token: write # To verify deployment (done automatically by the official action)

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
cache-dependency-path: frontend/webConverter/package-lock.json

- name: Install dependencies
working-directory: frontend/webConverter
run: npm install

- name: Build project
working-directory: frontend/webConverter
run: npm run build

- name: Upload Pages artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v3
with:
path: "./frontend/webConverter/dist/"

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: actions/deploy-pages@v4
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,19 @@ private String handleIncomingMessage(int id, String message) {
newJson = deserializeJsonAndAnnotate(message);
}
else if (message.startsWith("Json2DFD:")) {
message = message.replaceFirst("Json2DFD:" + name + ":", "");
message = message.replaceFirst("Json2DFD:", "");
var webEditorDfd = deserializeJson(message);
return name + ":" + Converter.convertToDFDandStringify(webEditorDfd, name);
}
else if (message.startsWith("DFD:")) {
newJson = safeLoadAndConvertDFDString(message);
} else {
newJson = safeLoadAndConvertDFDString(message, name);
} else if (message.startsWith("PCM2DFD:")){
message = message.replaceFirst("PCM2DFD:", "");
newJson = safeLoadAndConvertPCMString(message);
}
return name + ":" + Converter.convertToDFDandStringify(newJson, name);
} else {
newJson = safeLoadAndConvertPCMString(message);
}
} catch (IllegalArgumentException e) {
return "Error:" + e.getMessage();
}
Expand Down Expand Up @@ -143,10 +147,8 @@ private WebEditorDfd deserializeJson(String json){
return webEditorDfd;
}

private WebEditorDfd safeLoadAndConvertDFDString(String message) {
private WebEditorDfd safeLoadAndConvertDFDString(String message, String name) {
message = message.replaceFirst("DFD:", "");
var name = message.split(":")[0];
message = message.replaceFirst(name + ":", "");
var dfdMessage = message.split("\n:DD:\n")[0];
var ddMessage = message.split("\n:DD:\n")[1];
try {
Expand Down
30 changes: 30 additions & 0 deletions frontend/webConverter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
3 changes: 3 additions & 0 deletions frontend/webConverter/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar"]
}
33 changes: 33 additions & 0 deletions frontend/webConverter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# WebConverter

This template should help get you started developing with Vue 3 in Vite.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.

## Customize configuration

See [Vite Configuration Reference](https://vite.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Type-Check, Compile and Minify for Production

```sh
npm run build
```
14 changes: 14 additions & 0 deletions frontend/webConverter/components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* eslint-disable */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
// biome-ignore lint: disable
export {}

/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
BDropdown: typeof import('bootstrap-vue-next/components/BDropdown')['BDropdown']
BDropdownItemButton: typeof import('bootstrap-vue-next/components/BDropdown')['BDropdownItemButton']
}
}
1 change: 1 addition & 0 deletions frontend/webConverter/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
13 changes: 13 additions & 0 deletions frontend/webConverter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading
Loading