-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed: Fixed an issue with the Share page Sz command writing buffer #1586
Conversation
const terminalType = ref<string>('common'); | ||
|
||
terminalStore.setTerminalConfig('enableZmodem', false); | ||
</script> | ||
|
||
<style lang="scss" scoped> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code quality checks have not been performed on the given snippet, but there seem to be a few potential issues regarding the useTerminalStore
import:
- Ensure that the package name matches correctly if it's using external packages; replace
'custom-terntial/store/modules/terminal.ts'
. It would normally look like this:<dependency>("@my-package/custom-transaction-store")</dependency>
- Importing directly from a module file is generally discouraged because it leads to unclear scope management, especially when dealing with stateful components.
Replace<dependency>@my-package/core-state-management</dependency>
with<dependency>@@my-package/@modules/module-name</dependency>
For optimization:
The CSS style tag could use proper semantic attributes ($class
) instead of scoped
, which will improve accessibility for screen readers and browsers.
Here's an improved version of your code sample:
<template>
<div class="$main">
<CustomTerminal :type="$props.type">Hello World.</CustomTerminal>
</div>
</template>
<script setup>
import CustomTerminal from './index.vue';
// Other imports...
const props = defineProps({
type: String,
});
Remember, I am running through current practices and assumptions based on general knowledge until September 2021 (when most parts of my training were finished). Feel free to adjust accordingly if you're looking at something newer than then!
@@ -61,8 +60,6 @@ const warningIntervalId = ref<number>(0); | |||
|
|||
const onlineUsersMap = reactive<{ [key: string]: any }>({}); | |||
|
|||
terminalStore.setTerminalConfig('enableZmodem', false); | |||
|
|||
onUnmounted(() => { | |||
clearInterval(warningIntervalId.value); | |||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There don't appear to be any obvious differences or irregularities with this code snippet. However, I recommend running it through your editor's linting features if you're working in an IDE. If no errors are found there, no further changes could improve the code.
Quality Gate passedIssues Measures |
fixed: Fixed an issue with the Share page Sz command writing buffer