Skip to content

Commit

Permalink
Follow SPDX & REUSE specification
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral-Tech committed Feb 20, 2024
1 parent 27788f4 commit 146d790
Show file tree
Hide file tree
Showing 75 changed files with 789 additions and 661 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

node_modules
.git
.gitignore
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

name: docker build
on:
push:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pnpm.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

name: pnpm
on:
push:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# Logs
logs
*.log
Expand Down
10 changes: 10 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: The Frontend of WordHub
Upstream-Contact: The WordHub Organization <[email protected]>
Source: https://codeberg.org/wordhub/wordhub-frontend

# Sample paragraph, commented out:
#
# Files: src/*
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...
235 changes: 235 additions & 0 deletions COPYING

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

FROM node:current-alpine as build-stage
WORKDIR /app
COPY package*.json ./
Expand Down
661 changes: 0 additions & 661 deletions LICENSE

This file was deleted.

235 changes: 235 additions & 0 deletions LICENSES/AGPL-3.0-or-later.txt

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
SPDX-License-Identifier: AGPL-3.0-or-later
-->

# WordHub
- WordHub is an elegant word learning solution.

Expand Down
4 changes: 4 additions & 0 deletions auto-imports.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
Expand Down
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
SPDX-License-Identifier: AGPL-3.0-or-later
-->

<!doctype html>
<html>
<head>
Expand Down
3 changes: 3 additions & 0 deletions mock/assets/avatar.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
4 changes: 4 additions & 0 deletions mock/chart.mock.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

// chart.mock.ts
import { defineMock } from "vite-plugin-mock-dev-server";
import { Task } from "../src/store/taskStore";
Expand Down
4 changes: 4 additions & 0 deletions mock/dict.mock.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import Mock from "mockjs";
import { defineMock } from "vite-plugin-mock-dev-server";
import { DictVo, WordToReviewVo, WordVo } from "../src/components/Dicts/common";
Expand Down
4 changes: 4 additions & 0 deletions mock/user.mock.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import { defineMock } from "vite-plugin-mock-dev-server";
import { UserVo } from "../src/store/userStore";

Expand Down
4 changes: 4 additions & 0 deletions mock/word.mock.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import { defineMock } from "vite-plugin-mock-dev-server";
import { WordReviewPeekVo } from "../src/components/Dicts/common";

Expand Down
3 changes: 3 additions & 0 deletions package-lock.json.license

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions public/avatar.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions public/nginx.conf.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions public/wordhub.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions screenshots/screenshot1.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions screenshots/screenshot2.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions screenshots/screenshot3.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
6 changes: 6 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<el-container class="appContainer">
<el-header id="header">
Expand Down
3 changes: 3 additions & 0 deletions src/assets/audio/correct.wav.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions src/assets/audio/typing.wav.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions src/assets/audio/wrong.wav.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions src/assets/img/speaker.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
6 changes: 6 additions & 0 deletions src/components/AboutUs/AboutUs.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<el-container id="body">
<div class="a">
Expand Down
3 changes: 3 additions & 0 deletions src/components/AboutUs/donateus.jpg.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
4 changes: 4 additions & 0 deletions src/components/Chart/Chart.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

/**
* 返回从过去numDays天到今天每天日期字符串数组
* @param numDays 倒推多少天
Expand Down
6 changes: 6 additions & 0 deletions src/components/Chart/Chart.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<el-container direction="vertical" id="statisticsContainer">
<el-main id="barCharts" style="padding-bottom: 10px">
Expand Down
6 changes: 6 additions & 0 deletions src/components/Dicts/Dicts.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<el-container id="selectDictContainer">
<el-aside width="auto">
Expand Down
4 changes: 4 additions & 0 deletions src/components/Dicts/common.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import { ref } from "vue";

export interface DictVo {
Expand Down
4 changes: 4 additions & 0 deletions src/components/Error.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import { HttpStatusCode } from "axios";
import router from "../router";

Expand Down
6 changes: 6 additions & 0 deletions src/components/Learn.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<el-container style="height: 100%" direction="vertical">
<el-main class="body">
Expand Down
6 changes: 6 additions & 0 deletions src/components/Login.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<div class="a">
<el-container id="body">
Expand Down
6 changes: 6 additions & 0 deletions src/components/Options.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<div id="options">
<el-form label-position="left" label-width="50%" size="large">
Expand Down
6 changes: 6 additions & 0 deletions src/components/QwertyMode.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<el-container style="height: 100%" direction="vertical">
<el-collapse-transition>
Expand Down
6 changes: 6 additions & 0 deletions src/components/Register.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<div id="body">
<img alt="WordHub" src="/wordhub.png" width="100" height="100" />
Expand Down
6 changes: 6 additions & 0 deletions src/components/Review.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<el-container style="height: 100%" direction="vertical">
<el-main class="learnMain">
Expand Down
4 changes: 4 additions & 0 deletions src/components/SoundEffects.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import correctSoundRes from "../assets/audio/correct.wav";
import typingSoundRes from "../assets/audio/typing.wav";
import wrongSoundRes from "../assets/audio/wrong.wav";
Expand Down
6 changes: 6 additions & 0 deletions src/components/Stats.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<table>
<thead>
Expand Down
6 changes: 6 additions & 0 deletions src/components/UserInfo/Basic.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<div>
<el-form label-position="left" label-width="50%" size="large">
Expand Down
6 changes: 6 additions & 0 deletions src/components/UserInfo/ChangeAvatar.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<div>
<el-form label-position="left" label-width="50%" size="large">
Expand Down
6 changes: 6 additions & 0 deletions src/components/UserInfo/ChangePwd.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<div>
<el-form label-position="left" label-width="50%" size="large">
Expand Down
6 changes: 6 additions & 0 deletions src/components/UserInfo/DeleteUser.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<div>
<el-form label-position="left" label-width="50%" size="large">
Expand Down
6 changes: 6 additions & 0 deletions src/components/UserInfo/UserInfo.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<el-container>
<el-aside width="auto">
Expand Down
4 changes: 4 additions & 0 deletions src/components/UserInfo/common.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import { useUserStore } from "../../store/userStore";
import router from "../../router";

Expand Down
4 changes: 4 additions & 0 deletions src/components/WordCard.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 WordHub Organization <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import { Lang, WordVo } from "./Dicts/common";
import { isKana, isKatakana, toHiragana, toKatakana, toKana } from "wanakana";

Expand Down
6 changes: 6 additions & 0 deletions src/components/WordCard.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 WordHub Organization <integral@member.fsf.org>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

<template>
<el-card
class="word-card"
Expand Down
Loading

0 comments on commit 146d790

Please sign in to comment.