1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-12-09 22:33:10 +00:00
SunWuyuan df3c8e5a12
feat: Add ReadOnlyTokenWarning component and implement student name management dialog
- Introduced ReadOnlyTokenWarning.vue to alert users when using a read-only token.
- Added StudentNameManager.vue for managing student names with a dialog interface.
- Implemented AlternativeCodeDialog.vue for entering alternative codes (functionality pending).
- Created DeviceAuthDialog.vue for device authentication using namespace and password.
- Developed FirstTimeGuide.vue to guide users through the initial setup of Classworks KV.
- Added TokenInputDialog.vue for manual input of KV authorization tokens.
- Updated settings.vue to include a button for opening Classworks KV.
- Enhanced error handling and user feedback across components.
2025-11-01 19:31:41 +08:00
..
1
2025-03-14 21:53:22 +08:00
1
2024-11-24 09:32:05 +08:00
2025-04-05 12:19:46 +08:00
2025-10-12 08:32:54 +08:00
1
2024-11-17 17:04:36 +08:00
1
2025-03-15 21:55:29 +08:00
1
2024-11-17 17:04:36 +08:00
1
2025-03-08 21:51:00 +08:00

Components

Vue template files in this folder are automatically imported.

🚀 Usage

Importing is handled by unplugin-vue-components. This plugin automatically imports .vue files created in the src/components directory, and registers them as global components. This means that you can use any component in your application without having to manually import it.

The following example assumes a component located at src/components/MyComponent.vue:

<template>
  <div>
    <MyComponent />
  </div>
</template>

<script lang="ts" setup>
  //
</script>

When your template is rendered, the component's import will automatically be inlined, which renders to this:

<template>
  <div>
    <MyComponent />
  </div>
</template>

<script lang="ts" setup>
  import MyComponent from '@/components/MyComponent.vue'
</script>