Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/illtamer/sillage-front

Front-end implementation source code of IllTamer's personal blog
https://github.com/illtamer/sillage-front

bootstrap3 element-plus vue-router vue3-ts-vite

Last synced: 17 days ago
JSON representation

Front-end implementation source code of IllTamer's personal blog

Awesome Lists containing this project

README

        

# sillage-front

## Introduction

Front-end implementation source code of IllTamer's personal blog.

## Technology stack

- vue3 + ts + less + vite

- bootstrap3 + jquery (deprecated)

- element-plus

- plugins

- vue-router
- axios
- prismjs
- editor-md
- aplayer

## Dev-env-config

### jquery

1. powershell

```powershell
npm install jquery
npm install @types/jquery
```
2. main.ts

```ts
import $ from 'jquery'
createApp(App).use($)
```
3. vite-env.d.ts

```ts
declare module jQuery {}
```
4. usage

```ts
import $ from 'jquery';
```

### prismjs

1. powershell

```powershell
npm i prismjs -S
npm i @types/prismjs -D
npm install vite-plugin-prismjs -D
```
2. vite.config.ts

```ts
import prismjs from "vite-plugin-prismjs";
plugins: [
vue(),
prismjsPlugin({
languages: 'all',
plugins: ['line-numbers'], //配置显示行号插件
theme: 'coy', //主题名称
css: true,
})
],
```

3. usage

```ts
import Prism from 'prismjs';
// 资源刷新后
.then((): void => {Prism.highlightAll()});
```

### editor-md

1. powershell

```powershell
npm i md-editor-v3
```

## TODO

- bootstrap3 -> element-plus