<|start_filename|>src/components/SearchTree/index.js<|end_filename|>
import SearchTree from './SearchTree.vue'
export default SearchTree


<|start_filename|>src/components/verifition/util.js<|end_filename|>
export function resetSize (vm) {
  let imgWidth = vm.imgSize.width || 0
  let imgHeight = vm.imgSize.height || 0
  let barWidth = vm.barSize ? vm.barSize.width : 0
  let barHeight = vm.barSize ? vm.barSize.height	: 0// 图片的宽度、高度，移动条的宽度、高度

  const parentWidth = vm.$el.parentNode.offsetWidth || window.offsetWidth
  const parentHeight = vm.$el.parentNode.offsetHeight || window.offsetHeight

  if (vm.imgSize.width.indexOf('%') !== -1) {
    imgWidth = parseInt(vm.imgSize.width) / 100 * parentWidth + 'px'
  }

  if (vm.imgSize.height.indexOf('%') !== -1) {
    imgHeight = parseInt(vm.imgSize.height) / 100 * parentHeight + 'px'
  }

  if (vm.barSize && vm.barSize.width.indexOf('%') !== -1) {
    barWidth = parseInt(vm.barSize.width) / 100 * parentWidth + 'px'
  }

  if (vm.barSize && vm.barSize.height.indexOf('%') !== -1) {
    barHeight = parseInt(vm.barSize.height) / 100 * parentHeight + 'px'
  }

  return { imgWidth: imgWidth, imgHeight: imgHeight, barWidth: barWidth, barHeight: barHeight }
}

export const codeChars = [1, 2, 3, 4, 5, 6, 7, 8, 9, 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
export const codeColor1 = ['#fffff0', '#f0ffff', '#f0fff0', '#fff0f0']
export const codeColor2 = ['#FF0033', '#006699', '#993366', '#FF9900', '#66CC66', '#FF33CC']


<|start_filename|>src/core/directives/action.js<|end_filename|>
import Vue from 'vue'
import { checkPermission } from '@/utils/permissions'

/**
 * has 权限指令
 * 指令用法：参看shiro
 *    <a-button v-has="'user:add'" >添加用户</a-button>
 *    <a-button v-has="'user:edit'">删除用户</a-button>
 *    <a v-has="'user:del'" @click="edit(record)">修改</a>
 */
const has = Vue.directive('has', {
  bind: function (el, binding, vnode) {
    if (!checkPermission(binding.value)) {
      el.parentNode && el.parentNode.removeChild(el) || (el.style.display = 'none')
    }
  }
})
export default has


<|start_filename|>src/store/i18n-mixin.js<|end_filename|>
import { mapState } from 'vuex'
import { loadLanguageAsync } from '@/locales'
const i18nMixin = {
  computed: {
    ...mapState({
      currentLang: state => state.app.lang
    })
  },
  methods: {
    setLang (lang) {
      this.$store.dispatch('setLang', lang)
      loadLanguageAsync(lang)
    }
  }
}

export default i18nMixin


<|start_filename|>src/locales/lang/en-US.js<|end_filename|>
import antdEnUS from 'ant-design-vue/es/locale-provider/en_US'
const components = {
  antLocale: antdEnUS,
  momentName: 'eu'
}

const locale = {
  'message': '-',
  'logout': 'Logout',
  'menu.home': 'Home',
  'menu.dashboard': 'Dashboard',
  'menu.dashboard.analysis': 'Analysis',
  'menu.dashboard.weclome': 'Weclome',
  'menu.dashboard.monitor': 'Monitor',
  'menu.dashboard.workplace': 'Workplace',
  'menu.form': 'Form',
  'menu.form.basic': 'BaseForm',
  'menu.form.step': 'StepForm',
  'menu.form.advanced': 'AdvancedForm',
  'menu.form.edit': 'EditorForm',
  'menu.list': 'List',
  'menu.list.table': 'TableList',
  'menu.list.standard': 'StandardList',
  'menu.list.card': 'CardList',
  'menu.list.search': 'Search',
  'menu.list.search.article': 'Article',
  'menu.list.search.project': 'Project',
  'menu.list.search.application': 'Application',
  'menu.profile': 'Profile',
  'menu.profile.basic': 'ProfileBasic',
  'menu.profile.advanced': 'ProfileAdvanced',
  'menu.result': 'Result',
  'menu.result.succ': 'Succ',
  'menu.result.err': 'Err',
  'menu.exception': 'Exception',
  'menu.exception.403': '403',
  'menu.exception.404': '404',
  'menu.exception.500': '500',
  'menu.account': 'Account',
  'menu.account.center': 'Center',
  'menu.account.settings': 'Settings',
  'menu.account.settings.base': 'Base',
  'menu.account.settings.security': 'Security',
  'menu.account.settings.custom': 'Custom',
  'menu.account.settings.binding': 'Binding',
  'menu.account.settings.notification': 'Notification',

  'layouts.usermenu.dialog.title': 'Message',
  'layouts.usermenu.dialog.content': 'Do you really log-out.',

  'app.setting.pagestyle': 'Page style setting',
  'app.setting.pagestyle.light': 'Light style',
  'app.setting.pagestyle.dark': 'Dark style',
  'app.setting.pagestyle.realdark': 'RealDark style',
  'app.setting.themecolor': 'Theme Color',
  'app.setting.navigationmode': 'Navigation Mode',
  'app.setting.content-width': 'Content Width',
  'app.setting.fixedheader': 'Fixed Header',
  'app.setting.fixedsidebar': 'Fixed Sidebar',
  'app.setting.sidemenu': 'Side Menu Layout',
  'app.setting.topmenu': 'Top Menu Layout',
  'app.setting.content-width.fixed': 'Fixed',
  'app.setting.content-width.fluid': 'Fluid',
  'app.setting.othersettings': 'Other Settings',
  'app.setting.weakmode': 'Weak Mode',
  'app.setting.copy': 'Copy Setting',
  'app.setting.loading': 'Loading theme',
  'app.setting.copyinfo': 'copy success，please replace defaultSettings in src/models/setting.js',
  'app.setting.production.hint': 'Setting panel shows in development environment only, please manually modify',

  'app.setting.themecolor.daybreak': 'daybreak',
  'app.setting.themecolor.dust': 'dust',
  'app.setting.themecolor.volcano': 'volcano',
  'app.setting.themecolor.sunset': 'sunset',
  'app.setting.themecolor.cyan': 'cyan',
  'app.setting.themecolor.green': 'green',
  'app.setting.themecolor.geekblue': 'geekblue',
  'app.setting.themecolor.purple': 'purple'

}

export default {
  ...components,
  ...locale
}


<|start_filename|>src/locales/lang/zh-TW.js<|end_filename|>
export default {
  dashboard: {
    workplace: {
      project: '項目數',
      teamRank: '團隊排名',
      views: '訪問量'
    }
  }
}
