Skip to content

Commit

Permalink
change everything to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
KYLN24 committed Mar 21, 2024
1 parent 62142bd commit 8e743a5
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 30 deletions.
3 changes: 1 addition & 2 deletions .vitepress/config.js → .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export default defineConfig({
description: '旦夕 - 技术启明校园',
appearance: false,
srcDir: 'src',
cleanUrls: 'with-subfolders',
outlineTitle: 'DANXI',
cleanUrls: true,
themeConfig: {
logo: '/assets/logo.svg',
siteTitle: false,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/IntroCard.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
const props = defineProps({
title: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion src/components/NewsCard.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
const props = defineProps({
title: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductCard.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
const props = defineProps({
name: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Saying.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
const props = defineProps(['name', 'content'])
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ features:
- title: 敢想敢做
details: 100% 创意与热情驱动,不断将想法变为现实
---
<!-- <script setup>
<!-- <script setup lang="ts">
import IndexView from "./views/IndexView.vue";
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: page
sidebar: false
---

<script setup>
<script setup lang="ts">
import ProjectView from './views/ProjectView.vue'
</script>

Expand Down
32 changes: 16 additions & 16 deletions src/views/IndexView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
import PageContainer from '../components/PageContainer.vue'
import Saying from '../components/Saying.vue';
const userComment = [
Expand All @@ -22,21 +22,21 @@ const parterComment = [
}
]
// const departmentInfo = [
// {
// name: '开发部',
// desc: '开发部领导活跃于 GitHub 上的开源社区组织 DanXi-Dev 及 OpenTreeHole,负责团队各项产品的软件工程开发及系统运维等工作,积极探索新的业务,切实改善现有产品的稳定性与用户体验。',
// nav: '/department/dev'
// }, {
// name: '社区运营部',
// desc: '社区运营部负责团队运营的各大社区的活动策划与社区管理等工作,在团队运营的各大社区营造良好氛围、倡导积极向上的价值观、维护复旦大学学生的利益。',
// nav: '/department/op'
// }, {
// name: '公关联络部',
// desc: '公关联络部负责团队的公共关系工作,塑造正面的团队形象,积极与用户交流,听取用户的意见,回应用户的疑问,定期向用户公开透明度报告。此外,公关联络部负责团队的对外联络工作,与合作伙伴积极交流沟通。',
// nav: '/department/pr'
// }
// ]
const departmentInfo = [
{
name: '开发部',
desc: '开发部领导活跃于 GitHub 上的开源社区组织 DanXi-Dev 及 OpenTreeHole,负责团队各项产品的软件工程开发及系统运维等工作,积极探索新的业务,切实改善现有产品的稳定性与用户体验。',
nav: '/department/dev'
}, {
name: '社区运营部',
desc: '社区运营部负责团队运营的各大社区的活动策划与社区管理等工作,在团队运营的各大社区营造良好氛围、倡导积极向上的价值观、维护复旦大学学生的利益。',
nav: '/department/op'
}, {
name: '公关联络部',
desc: '公关联络部负责团队的公共关系工作,塑造正面的团队形象,积极与用户交流,听取用户的意见,回应用户的疑问,定期向用户公开透明度报告。此外,公关联络部负责团队的对外联络工作,与合作伙伴积极交流沟通。',
nav: '/department/pr'
}
]
const contactInfo = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/views/ProjectAppView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
import { ref } from 'vue'
import PageContainer from '../components/PageContainer.vue'
import ProductCard from '../components/ProductCard.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/views/ProjectDankeView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
import PageContainer from '../components/PageContainer.vue'
import ProductCard from '../components/ProductCard.vue'
import Saying from '../components/Saying.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/views/ProjectView.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
import ProductCard from '../components/ProductCard.vue'
const product = [
Expand Down
7 changes: 4 additions & 3 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
import type { Config } from 'tailwindcss'

export default {
content: [
"./{.vitepress,src}/**/*.{html,js,ts,vue,md}",
],
theme: {
extend: {},
},
plugins: [],
}
} satisfies Config

0 comments on commit 8e743a5

Please sign in to comment.