Skip to content
Merged
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/workflows/run_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
docker run -d --name wheel --network wheel-e2e-net \
-p 8089:8089 \
-e WHEEL_USE_HTTP=1 \
-e WHEEL_LOGLEVEL=ERROR \
-e WHEEL_LOG_LEVEL=ERROR \
wheel_e2e_test
docker cp test/wheel_config/. wheel:/root/.wheel/
docker run -d --name wheel_auth --network wheel-e2e-net \
-p 8090:8089 \
-e WHEEL_USE_HTTP=1 \
-e WHEEL_ANONYMOUS_LOGIN=YES \
-e WHEEL_ANONYMOUS_PASSWORD=WheelTest123! \
-e WHEEL_LOGLEVEL=ERROR \
-e WHEEL_LOG_LEVEL=ERROR \
wheel_e2e_test
docker cp test/wheel_config_auth/. wheel_auth:/root/.wheel/
docker run -d --name mock --network wheel-e2e-net \
Expand Down
2 changes: 1 addition & 1 deletion TEST_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Chromeクラッシュ対策: /dev/shm を 512MB に拡張
| `WHEEL_TEST_REMOTE_PASSWORD` | リモートホストパスワード | `passw0rd` |
| `WHEEL_CONFIG_DIR` | WHEEL設定ディレクトリパス | (setup.shが自動生成) |
| `NODE_ENV` | Node環境 | `test` |
| `WHEEL_LOGLEVEL` | ログレベル | `OFF` |
| `WHEEL_LOG_LEVEL` | ログレベル | `OFF` |

### E2Eテスト

Expand Down
9 changes: 9 additions & 0 deletions client/src/components/Workflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
variant="outlined"
icon="mdi-restore"
:disabled="! cleanProjectAllowed"
data-cy="workflow-cleanup_project-btn"
v-bind="props"
@click="openProjectOperationComfirmationDialog('cleanProject')"
/>
Expand Down Expand Up @@ -916,6 +917,7 @@ export default {
...mapActions({
showSnackbar: "showSnackbar",
closeSnackbar: "closeSnackbar",
clearSnackbarQueue: "clearSnackbarQueue",
commitSelectedComponent: "selectedComponent"
}),
...mapMutations({
Expand All @@ -941,6 +943,7 @@ export default {
}
if (operation === "cleanProject") {
this.firstViewDataAlived = false;
this.clearSnackbarQueue();
}
if (operation === "stopProject" || operation === "cleanProject") {
this.commitWaitingWorkflow(true);
Expand All @@ -953,6 +956,12 @@ export default {
if (operation === "cleanProject") {
this.viewerDataDir = null;
}
const label = operation.replace("Project", " project");
if (rt) {
this.showSnackbar({ message: `${label} accepted`, timeout: 3000 });
} else {
this.showSnackbar({ message: `${label} failed`, timeout: -1 });
}
});
},
openProjectOperationComfirmationDialog(operation) {
Expand Down
13 changes: 12 additions & 1 deletion client/src/components/common/NavigationDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class="text-capitalize"
text="Remotehost editor"
data-cy="navigation-manage_remote_host-btn"
@click="$emit('open-remotehost-manager')"
@click="openRemotehostManager"
/>
<v-btn
prepend-icon="mdi-help-circle-outline"
Expand All @@ -27,6 +27,7 @@
class="text-capitalize"
text="User guide"
data-cy="navigation-user_guide_editor-btn"
@click="drawer = false"
/>
</v-list>
</v-navigation-drawer>
Expand Down Expand Up @@ -64,6 +65,16 @@ export default {
this.$emit("update:modelValue", value);
}
}
},
methods: {

/**
* Close the drawer and emit the open-remotehost-manager event.
*/
openRemotehostManager() {
this.drawer = false;
this.$emit("open-remotehost-manager");
}
}
};
</script>
85 changes: 42 additions & 43 deletions client/src/components/componentProperty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,50 +14,25 @@
<v-toolbar
color="background"
>
<v-toolbar-title>
<v-form
v-model="validName"
@submit.prevent
>
<v-tooltip
:text="copySelectedComponent.name"
location="top"
:disabled="copySelectedComponent.name.length <= 10"
>
<template #activator="{ props }">
<v-text-field
v-model="copySelectedComponent.name"
v-bind="props"
label="name"
:readonly="readOnly"
variant="outlined"
class="pt-4"
density="compact"
:rules="[rules.isValidName, isUniqueName]"
data-cy="component_property-name-text_field"
/>
</template>
</v-tooltip>
</v-form>
</v-toolbar-title>
<v-toolbar-items>
<v-tooltip
location="bottom"
text="disable"
>
<template #activator="{ props}">
<v-switch
v-model="copySelectedComponent.disable"
:readonly="readOnly"
hide-details
color="error"
label="disable"
v-bind="props"
data-cy="component_property-disable-switch"
class="ml-2"
/>
</template>
</v-tooltip>
<div class="d-flex align-center ml-2">
<span
class="text-caption"
:class="!copySelectedComponent.disable ? 'text-primary font-weight-bold' : 'text-disabled'"
>enable</span>
<v-switch
v-model="copySelectedComponent.disable"
:readonly="readOnly"
hide-details
:color="copySelectedComponent.disable ? 'error' : 'primary'"
data-cy="component_property-disable-switch"
class="mx-1"
/>
<span
class="text-caption"
:class="copySelectedComponent.disable ? 'text-error font-weight-bold' : 'text-disabled'"
>disable</span>
</div>
<v-tooltip
location="bottom"
text="close"
Expand All @@ -73,6 +48,30 @@
</v-tooltip>
</v-toolbar-items>
</v-toolbar>
<v-form
v-model="validName"
@submit.prevent
>
<v-tooltip
:text="copySelectedComponent.name"
location="top"
:disabled="copySelectedComponent.name.length <= 10"
>
<template #activator="{ props }">
<v-text-field
v-model="copySelectedComponent.name"
v-bind="props"
label="name"
:readonly="readOnly"
variant="outlined"
class="px-4 pt-3"
density="compact"
:rules="[rules.isValidName, isUniqueName]"
data-cy="component_property-name-text_field"
/>
</template>
</v-tooltip>
</v-form>
<v-form
v-model="valid"
@submit.prevent
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/rapid/unsavedFilesDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
>
<v-card>
<v-card-title class="text-h5">
Discard following changes and exit text editor?
Do you want to keep or discard the changes you made?
</v-card-title>
<v-card-text>
<v-data-table
Expand All @@ -28,19 +28,19 @@
<v-btn
class="text-capitalize"
prepend-icon="mdi-content-save"
text="keep changes"
text="Keep changes and exit"
@click="keepChanges"
/>
<v-btn
class="text-capitalize"
prepend-icon="mdi-alert-circle-outline"
text="discard all changes"
text="Discard changes and exit"
@click="discardChanges"
/>
<v-btn
class="text-capitalize"
prepend-icon="mdi-close"
text="cancel"
text="Continue editing"
@click="closeDialog"
/>
</v-card-actions>
Expand Down
6 changes: 3 additions & 3 deletions client/src/lib/constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"plugColor": "#338033",
"elsePlugColor": "#9944bb",
"filePlugColor": "#5673BF",
"fileLinkCopyColor": "#E07B39",
"fileLinkRemoteSymlinkColor": "#CC5500",
"fileLinkCrossBoundaryColor": "#2AABBB",
"fileLinkCopyColor": "#FFB300",
"fileLinkRemoteSymlinkColor": "#55DDFF",
"fileLinkCrossBoundaryColor": "#FF5555",
"textHeight": 32,
"borderWidth": 1.5,
"textLengthLimit": 100,
Expand Down
10 changes: 10 additions & 0 deletions client/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,16 @@ export default new Vuex.Store({
context.dispatch("showSnackbar");
}
},

/**
* Clear all pending snackbar messages from the queue and dismiss any currently visible toast.
* @param {object} context - Vuex action context
*/
clearSnackbarQueue: (context)=>{
context.state.snackbarQueue.splice(0);
context.commit("snackbarMessage", "");
context.commit("openSnackbar", false);
},
showDialog: (context, payload)=>{
//ignore if dialog is already opend
//we have to use dialog queue for this case
Expand Down
Loading
Loading