Skip to content

Commit

Permalink
docs(docs): updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Apr 29, 2021
1 parent 7b573b4 commit 48b39a8
Show file tree
Hide file tree
Showing 146 changed files with 4,055 additions and 4,131 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
## Changelog

### 3.0.1-beta.5.2
*2021-04-29*

#### New feature

- `vc-overlay-html`, Load HTML element overlays by geographic location.

#### Optimization

- Improve some English documents.
- The language of Vetur's smart prompt is changed to English by default.

### 3.0.1-beta.4
*2021-04-26*

#### Bug 修复
#### Bug fixes

- Document search function.
- The intellisense of Vetur is invalid.
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
## 更新日志

### 3.0.1-beta.5.2
*2021-04-29*

#### 新特性

- `vc-overlay-html`, 按地理位置加载 HTML 元素覆盖物。

#### 优化

- 完善英文部分文档。
- Vetur 智能提示语言默认改为英文。

### 3.0.1-beta.4
*2021-04-26*

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
</p>

<p align="center">
<a href="https://travis-ci.org/zouyaoji/vue-cesium">
<img src="https://img.shields.io/travis/zouyaoji/vue-cesium?style=plastic">
<a href="https://github.com/zouyaoji/vue-cesium/actions/workflows/publish-npm.yml" target="_blank">
<img src="https://img.shields.io/github/workflow/status/zouyaoji/vue-cesium/Publish%20to%20NPM%20registry?style=plastic">
</a>
<a href="https://www.npmjs.com/package/vue-cesium">
<img src="https://img.shields.io/npm/v/vue-cesium?style=plastic">
<a href="https://www.npmjs.com/package/vue-cesium" target="_blank">
<img src="https://img.shields.io/npm/v/vue-cesium/next?style=plastic">
</a>
<a href="https://www.npmjs.com/package/vue-cesium">
<a href="https://npmcharts.com/compare/vue-cesium?minimal=true" target="_blank">
<img src="https://img.shields.io/npm/dm/vue-cesium?style=plastic">
</a>
<a href="https://github.com/zouyaoji/vue-cesium/blob/dev/LICENSE">
<a href="https://github.com/zouyaoji/vue-cesium/blob/dev/LICENSE" target="_blank">
<img src="https://img.shields.io/github/license/zouyaoji/vue-cesium?style=plastic">
</a>
<a href="https://coveralls.io/github/zouyaoji/vue-cesium?branch=dev">
<a href="https://coveralls.io/github/zouyaoji/vue-cesium?branch=dev" target="_blank">
<img src="https://img.shields.io/coveralls/github/zouyaoji/vue-cesium?style=plastic">
</a>
<br>
Expand Down
14 changes: 7 additions & 7 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
</p>

<p align="center">
<a href="https://travis-ci.org/zouyaoji/vue-cesium">
<img src="https://img.shields.io/travis/zouyaoji/vue-cesium?style=plastic">
<a href="https://github.com/zouyaoji/vue-cesium/actions/workflows/publish-npm.yml" target="_blank">
<img src="https://img.shields.io/github/workflow/status/zouyaoji/vue-cesium/Publish%20to%20NPM%20registry?style=plastic">
</a>
<a href="https://www.npmjs.com/package/vue-cesium">
<img src="https://img.shields.io/npm/v/vue-cesium?style=plastic">
<a href="https://www.npmjs.com/package/vue-cesium" target="_blank">
<img src="https://img.shields.io/npm/v/vue-cesium/next?style=plastic">
</a>
<a href="https://www.npmjs.com/package/vue-cesium">
<a href="https://npmcharts.com/compare/vue-cesium?minimal=true" target="_blank">
<img src="https://img.shields.io/npm/dm/vue-cesium?style=plastic">
</a>
<a href="https://github.com/zouyaoji/vue-cesium/blob/dev/LICENSE">
<a href="https://github.com/zouyaoji/vue-cesium/blob/dev/LICENSE" target="_blank">
<img src="https://img.shields.io/github/license/zouyaoji/vue-cesium?style=plastic">
</a>
<a href="https://coveralls.io/github/zouyaoji/vue-cesium?branch=dev">
<a href="https://coveralls.io/github/zouyaoji/vue-cesium?branch=dev" target="_blank">
<img src="https://img.shields.io/coveralls/github/zouyaoji/vue-cesium?style=plastic">
</a>
<br>
Expand Down
85 changes: 36 additions & 49 deletions website/components/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,31 @@
<router-link :to="`/${lang}`">
<!-- logo -->
<slot>
<img
src="../assets/images/vue-cesium-logo.svg"
alt="vue-cesium-logo"
class="nav-logo"
>
<img
src="../assets/images/vue-cesium-logo-small.svg"
alt="element-logo"
class="nav-logo-small"
>
<img src="../assets/images/vue-cesium-logo.svg" alt="vue-cesium-logo" class="nav-logo">
<img src="../assets/images/vue-cesium-logo-small.svg" alt="element-logo" class="nav-logo-small">
</slot>
</router-link>
</h1>
<h1>
<a href="https://www.npmjs.com/package/vue-cesium" target="_blank">
<img src="https://img.shields.io/npm/v/vue-cesium/next?style=plastic">
</a>
</h1>
<h1>
<a href="https://npmcharts.com/compare/vue-cesium?minimal=true" target="_blank">
<img src="https://img.shields.io/npm/dm/vue-cesium?style=plastic">
</a>
</h1>
<h1>
<a href="https://github.com/zouyaoji/vue-cesium/stargazers" target="_blank">
<img src="https://img.shields.io/github/stars/zouyaoji/vue-cesium?style=social">
</a>
</h1>
<h1>
<a href="https://github.com/zouyaoji/vue-cesium/issues" target="_blank">
<img src="https://img.shields.io/github/issues/zouyaoji/vue-cesium">
</a>
</h1>

<!-- nav -->
<ul class="nav">
Expand Down Expand Up @@ -52,29 +64,14 @@
</li>

<!-- 版本选择器 -->
<li
v-if="false"
v-show="isComponentPage"
class="nav-item nav-versions"
>
<el-dropdown
trigger="click"
class="nav-dropdown"
:class="{ 'is-active': verDropdownVisible }"
>
<li v-if="false" v-show="isComponentPage" class="nav-item nav-versions">
<el-dropdown trigger="click" class="nav-dropdown" :class="{ 'is-active': verDropdownVisible }">
<span>
{{ version }}
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu
class="nav-dropdown-list"
@input="handleVerDropdownToggle"
>
<el-dropdown-item
v-for="item in Object.keys(versions)"
:key="item"
@click="switchVersion(item)"
>
<el-dropdown-menu class="nav-dropdown-list" @input="handleVerDropdownToggle">
<el-dropdown-item v-for="item in Object.keys(versions)" :key="item" @click="switchVersion(item)">
{{ item }}
</el-dropdown-item>
</el-dropdown-menu>
Expand All @@ -83,25 +80,14 @@

<!-- 语言选择器 -->
<li class="nav-item lang-item">
<el-dropdown
trigger="click"
class="nav-dropdown nav-lang"
:class="{ 'is-active': langDropdownVisible }"
>
<el-dropdown trigger="click" class="nav-dropdown nav-lang" :class="{ 'is-active': langDropdownVisible }">
<span>
{{ displayedLang }}
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<template #dropdown>
<el-dropdown-menu
class="nav-dropdown-list"
@input="handleLangDropdownToggle"
>
<el-dropdown-item
v-for="(value, key) in langs"
:key="key"
@click="switchLang(key)"
>
<el-dropdown-menu class="nav-dropdown-list" @input="handleLangDropdownToggle">
<el-dropdown-item v-for="(value, key) in langs" :key="key" @click="switchLang(key)">
{{ value }}
</el-dropdown-item>
</el-dropdown-menu>
Expand All @@ -122,7 +108,7 @@ const version = '1.0.0' // element version
export default {
components: {
AlgoliaSearch,
AlgoliaSearch
},
data() {
return {
Expand All @@ -133,8 +119,8 @@ export default {
langDropdownVisible: true,
langs: {
[Language.CN]: '中文',
[Language.EN]: 'English',
},
[Language.EN]: 'English'
}
}
},
Expand All @@ -150,7 +136,7 @@ export default {
},
isComponentPage() {
return /^component/.test(this.$route.name)
},
}
},
created() {
// const xhr = new XMLHttpRequest()
Expand Down Expand Up @@ -184,8 +170,8 @@ export default {
handleLangDropdownToggle(visible) {
this.langDropdownVisible = visible
},
},
}
}
}
</script>
<style lang="scss" scoped>
Expand Down Expand Up @@ -219,6 +205,7 @@ export default {
float: left;
font-size: 32px;
font-weight: normal;
margin-right: 10px;
a {
color: #333;
Expand Down
1 change: 0 additions & 1 deletion website/components/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export default {
if (!query) return
this.index.search(query, { hitsPerPage: 12 }).then(res => {
if (res.hits.length > 0) {
console.log(res.hits)
this.isEmpty = false
cb(
res.hits
Expand Down
4 changes: 3 additions & 1 deletion website/demo-styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@import 'element-theme-chalk/src/mixins/config.scss';
@import 'vc-viewer.scss';
@import 'vc-navigation.scss';
// @import 'vc-navigation.scss';
@import 'vc-layer-imagery.scss';
@import 'vc-datasource-custom.scss';
@import 'vc-overlay-html.scss';

.demo-block {
font-weight: 400;
Expand All @@ -12,6 +13,7 @@
.demo-viewer {
width: 100%;
height: 500px;
overflow: hidden;

.demo-toolbar {
position: absolute;
Expand Down
24 changes: 0 additions & 24 deletions website/demo-styles/vc-datasource-custom.scss
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
.demo-block.demo-vc-datasource-custom {
.#{$namespace}-row {
border-radius: 100px;
align-items: baseline;

&:last-child {
margin-bottom: 0;
}
}
.#{$namespace}-button {
margin: 10px 10px 10px 0;

&:first-child {
margin-left: 20px;
}
}

.#{$namespace}-switch {
margin: 20px 20px 20px 0;

&:first-child {
margin-left: 20px;
}
}

.#{$namespace}-switch__label.is-active {
color: #409eff;
}
Expand Down
16 changes: 0 additions & 16 deletions website/demo-styles/vc-viewer.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
.demo-block.demo-vc-viewer {
.#{$namespace}-row {
border-radius: 100px;
align-items: baseline;

&:last-child {
margin-bottom: 0;
}
}
.#{$namespace}-button {
margin: 10px 10px 10px 0;

&:first-child {
margin-left: 20px;
}
}

.#{$namespace}-switch {
margin: 20px 20px 20px 0;

Expand Down
Loading

0 comments on commit 48b39a8

Please sign in to comment.