Skip to content

Commit

Permalink
Merge with master latest code
Browse files Browse the repository at this point in the history
  • Loading branch information
Armour committed Apr 3, 2020
2 parents d925aff + 217ecf6 commit ad884f8
Show file tree
Hide file tree
Showing 13 changed files with 655 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/*.js
src/assets
tests/unit/coverage
public/**/*.js
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ yarn-error.log*
# Editor directories and files
.idea
.vscode
.history
.ionide
*.suo
*.ntvs*
*.njsproj
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@
],
"lint-staged": {
"*.{js,vue}": [
"vue-cli-service lint",
"git add"
"vue-cli-service lint"
]
},
"repository": {
Expand Down
419 changes: 419 additions & 0 deletions public/tinymce/langs/ko_KR.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/components/AvatarUpload/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default class extends Vue {
en: 'en',
zh: 'zh',
es: 'es-MX',
ja: 'ja'
ja: 'ja',
ko: 'ko'
}
get show() {
Expand Down
16 changes: 12 additions & 4 deletions src/components/Breadcrumb/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</template>

<script lang="ts">
import pathToRegexp from 'path-to-regexp'
import { compile } from 'path-to-regexp'
import { Component, Vue, Watch } from 'vue-property-decorator'
import { RouteRecord, Route } from 'vue-router'
Expand Down Expand Up @@ -67,17 +67,25 @@ export default class extends Vue {
private pathCompile(path: string) {
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
const { params } = this.$route
const toPath = pathToRegexp.compile(path)
const toPath = compile(path)
return toPath(params)
}
private handleLink(item: any) {
const { redirect, path } = item
if (redirect) {
this.$router.push(redirect)
this.$router.push(redirect).catch(err => {
// Throw Error "NavigationDuplicated"
// https://github.com/vuejs/vue-router/issues/2872#issuecomment-522341874
console.log(err)
})
return
}
this.$router.push(this.pathCompile(path))
this.$router.push(this.pathCompile(path)).catch(err => {
// Throw Error "NavigationDuplicated"
// https://github.com/vuejs/vue-router/issues/2872#issuecomment-522341874
console.log(err)
})
}
}
</script>
Expand Down
6 changes: 6 additions & 0 deletions src/components/LangSelect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
>
日本語
</el-dropdown-item>
<el-dropdown-item
:disabled="language==='ko'"
command="ko"
>
한국어
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Tinymce/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export default class extends Vue {
en: 'en',
zh: 'zh_CN',
es: 'es',
ja: 'ja'
ja: 'ja',
ko: 'ko_KR'
}
get language() {
Expand Down
6 changes: 6 additions & 0 deletions src/lang/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ import elementEnLocale from 'element-ui/lib/locale/lang/en'
import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN'
import elementEsLocale from 'element-ui/lib/locale/lang/es'
import elementJaLocale from 'element-ui/lib/locale/lang/ja'
import elementKoLocale from 'element-ui/lib/locale/lang/ko'

// User defined lang
import enLocale from './en'
import zhLocale from './zh'
import esLocale from './es'
import jaLocale from './ja'
import koLocale from './ko'

Vue.use(VueI18n)

Expand All @@ -33,6 +35,10 @@ const messages = {
ja: {
...jaLocale,
...elementJaLocale
},
ko: {
...koLocale,
...elementKoLocale
}
}

Expand Down
175 changes: 175 additions & 0 deletions src/lang/ko.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
export default {
route: {
dashboard: '대시보드',
documentation: '문서',
guide: '가이드',
permission: '권한',
rolePermission: '역할 권한',
pagePermission: '페이지 권한',
directivePermission: '지시 권한',
icons: '아이콘',
components: '구성 요소',
tinymce: 'TinyMCE',
markdown: 'Markdown',
jsonEditor: 'JSON Editor',
splitPane: '패널',
avatarUpload: '아바타업로드',
dropzone: 'Dropzone',
sticky: 'Sticky',
countTo: 'Count To',
componentMixin: '구성 요소 Mixin',
backToTop: 'Back To Top',
draggableDialog: '드래그 상자',
draggableKanban: '드래그 간판',
draggableList: '드래그 리스트',
draggableSelect: '드래그 선택',
charts: '차트',
barChart: '막대그래프',
lineChart: '꺽은선그래프',
mixedChart: '종합차트',
example: '예시',
nested: 'Nested Routes',
menu1: '메뉴1',
'menu1-1': '메뉴 1-1',
'menu1-2': '메뉴 1-2',
'menu1-2-1': '메뉴 1-2-1',
'menu1-2-2': '메뉴 1-2-2',
'menu1-3': '메뉴 1-3',
menu2: '메뉴 2',
table: '표',
dynamicTable: 'Dynamic 표',
draggableTable: 'Draggable 표',
inlineEditTable: 'Inline Edit 표',
complexTable: 'Complex 표',
tab: 'Tab',
form: '형태',
createArticle: '게시물 작성',
editArticle: '게시물 편집',
articleList: '게시물 리스트',
errorPages: '에러 페이지',
page401: '401',
page404: '404',
errorLog: '에러 로그',
excel: '엑셀',
exportExcel: '엑셀 내보내기',
selectExcel: '엑셀 선택',
mergeHeader: '헤더 병합',
uploadExcel: '엑셀 올리기',
zip: 'Zip',
pdf: 'PDF',
exportZip: 'Export Zip',
theme: '테마',
clipboard: 'Clipboard',
i18n: '언어',
externalLink: '외부 링크',
profile: '프로필'
},
navbar: {
dashboard: '대시보드',
github: '깃허브',
logOut: '로그아웃',
profile: '프로필',
theme: '테마',
size: '크기'
},
login: {
title: '타이틀',
logIn: '로그인',
username: '이름',
password: '비밀번호',
any: 'any',
thirdparty: '외부 ID로 로그인',
thirdpartyTips: '로컬 환경에서 로그인 할 수 없습니다.'
},
documentation: {
documentation: '문서',
github: '깃허브 링크'
},
permission: {
createRole: '역할 추가',
editPermission: '권한 수정',
roles: '역할',
switchRoles: '역할 바꾸기',
tips: 'v-permission 사용할 때가 있습니다. 예 : Element-UI의 el-tab, el-table-column 및 다른 dom. v-if를 사용해야합니다.',
delete: '삭제',
confirm: '확인',
cancel: '취소'
},
guide: {
description: '각 기능에 대한 설명입니다.',
button: '버튼'
},
components: {
documentation: '문서',
tinymceTips: '서식있는 텍스트는 관리 백엔드의 핵심 기능이지만 동시에 문제가 많은 곳입니다. 리치 텍스트를 선택하는 과정에서도 많은 우회가 필요했습니다. 시중에 나와있는 일반적인 서식있는 텍스트는 기본적으로 사용되었으며 마침내 Tinymce를 선택했습니다. 보다 자세한 리치 텍스트 비교 및 소개를 참조하십시오.',
stickyTips: '페이지의 지정된 위치에 스크롤하면 나타납니다.',
backToTopTips1: '페이지가 지정된 위치로 스크롤되면 맨 아래 오른쪽 모서리에 맨 위로 이동 단추가 나타납니다.',
backToTopTips2: '버튼 스타일, 표시 / 숨기기, 모양 높이, 반환 높이를 사용자 정의 할 수 있습니다. 텍스트 프롬프트가 필요한 경우 element-ui el-tooltip 요소를 외부에서 사용할 수 있습니다',
imageUploadTips: 'vue @ 1 버전 만 사용하고 있었고 현재 mockjs와 호환되지 않기 때문에 직접 수정했으며 사용하려는 경우 공식 버전을 사용하는 것이 좋습니다.'
},
table: {
dynamicTips1: '정렬된 헤더',
dynamicTips2: '정렬되지 않은 헤더',
dragTips1: '기본 순서',
dragTips2: '드래그한 순서',
title: '타이틀',
importance: '중요성',
type: 'Type',
remark: 'Remark',
search: '검색',
add: '추가',
export: '내보내기',
reviewer: 'Reviewer',
id: 'ID',
date: '날짜',
author: '글쓴이',
readings: 'Readings',
status: '상태',
actions: 'Actions',
edit: '수정',
publish: '게시',
draft: 'Draft',
delete: '삭제',
cancel: '취소',
confirm: '확인'
},
example: {
warning: 'keep-alive의 \'include \'는 (는) 현재 경로 기반 캐싱을 지원하지 않으므로 구성 요소 이름을 기반으로 캐시되기 때문에 keep-alive로 페이지를 만들고 편집 할 수 없습니다. 비슷한 캐싱 효과를 얻으려면 localStorage와 같은 브라우저 캐싱 구성표를 사용할 수 있습니다. 또는 keep-alive \' include \'를 사용하여 모든 페이지를 직접 캐시하지 마십시오. 자세히보다'
},
errorLog: {
tips: '오른쪽 상단에있는 버그 아이콘을 클릭하십시오',
description: '이제 관리 시스템은 기본적으로 스파의 형태이며 사용자 경험을 향상 시키지만 페이지 문제의 가능성을 증가시킵니다. 작은 태만으로 인해 전체 페이지 교착 상태가 발생할 수 있습니다. 다행히 Vue는 오류를 처리하거나 예외를보고 할 수있는 예외 처리를 포착하는 방법을 제공합니다.',
documentation: '문서 소개'
},
excel: {
export: '내보내기',
selectedExport: '선택 항목 내보내기',
placeholder: '파일 이름을 입력하세요.(기본 엑셀 목록)'
},
zip: {
export: '내보내기',
placeholder: '파일 이름을 입력하세요.(기본 파일)'
},
pdf: {
tips: '여기서는 window.print ()를 사용하여 PDF 다운로드 기능을 구현합니다.'
},
theme: {
change: '테마 바꾸기',
documentation: '테마 문서',
tips: 'Tips: 탐색 모음의 테마 선택과는 다른 응용 프로그램 시나리오가있는 두 가지 다른 스키닝 방법입니다. 자세한 내용은 설명서를 참조하십시오.'
},
tagsView: {
refresh: '새로고침',
close: '닫기',
closeOthers: '기타 닫기',
closeAll: '모두 닫기'
},
settings: {
title: '페이지 스타일 설정',
theme: '테마 색상',
showTagsView: 'Tags-View 열기',
showSidebarLogo: '사이드 메뉴 로고',
fixedHeader: '헤더 고정',
sidebarTextTheme: '사이드 메뉴 글꼴 테마'
}
}
3 changes: 2 additions & 1 deletion src/views/components-demo/markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export default class extends Vue {
en: 'en_US',
zh: 'zh_CN',
es: 'es_ES',
ja: 'ja_JP'
ja: 'ja_JP',
ko: 'ko_KR'
}
mounted() {
Expand Down
7 changes: 7 additions & 0 deletions src/views/i18n-demo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
>
日本語
</el-radio>
<el-radio
label="ko"
border
>
한국어
</el-radio>
</el-radio-group>
<el-tag
style="margin-top: 15px; display: block;"
Expand Down Expand Up @@ -205,6 +211,7 @@ export default class extends Vue {
this.$i18n.mergeLocaleMessage('zh', local.zh)
this.$i18n.mergeLocaleMessage('es', local.es)
this.$i18n.mergeLocaleMessage('ja', local.ja)
this.$i18n.mergeLocaleMessage('ko', local.ko)
}
this.setOptions() // set default select options
}
Expand Down
20 changes: 20 additions & 0 deletions src/views/i18n-demo/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,25 @@ export default {
two: '2',
three: '3'
}
},
ko: {
i18nView: {
title: '언어 변경',
note: '이 프로젝트의 국제화는 vue-i18n을 기반으로합니다',
datePlaceholder: '요일 선택',
selectPlaceholder: '선택',
tableDate: '테이블 날짜',
tableName: '테이블 이름',
tableAddress: '테이블 주소',
default: '고정 값',
primary: '1순위',
success: '성공',
info: '정보',
warning: '경고',
danger: '위험',
one: '하나',
two: '둘',
three: '셋'
}
}
}

0 comments on commit ad884f8

Please sign in to comment.