Skip to content

Commit

Permalink
feat(leaflet): implement venue map
Browse files Browse the repository at this point in the history
  • Loading branch information
baby230211 committed Aug 5, 2023
1 parent 033f34d commit ddf201e
Show file tree
Hide file tree
Showing 7 changed files with 358 additions and 47 deletions.
6 changes: 6 additions & 0 deletions i18n/venue/index.i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default genI18nMessages({
address:
'No. 128, Sec. 2, Academia Rd., Nankang, Taipei 115, Taiwan',
},
venueMap: {
title: 'Venue Map',
},
transMode: {
car: 'By Car',
publicTransport: 'By Public Transport',
Expand Down Expand Up @@ -143,6 +146,9 @@ export default genI18nMessages({
name: '中央研究院\n人文社會科學館',
address: '台北市南港區研究院路 2 段 128 號',
},
venueMap: {
title: '會場地圖',
},
transMode: {
car: '自行開車',
publicTransport: '大眾運輸工具',
Expand Down
17 changes: 9 additions & 8 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ export default {

// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: [
'~/plugins/iterator.js',
'~/plugins/http.js',
'~/plugins/strings.js',
'~/plugins/vue-dompurify.js',
'~/plugins/vue-awesome-swiper.js',
{ src: '~/plugins/iterator.js' },
{ src: '~/plugins/http.js' },
{ src: '~/plugins/strings.js' },
{ src: '~/plugins/vue-dompurify.js' },
{ src: '~/plugins/vue-awesome-swiper.js' },
{ src: '~/plugins/leaflet.js', mode: 'client' },
],

// Auto import components (https://go.nuxtjs.dev/config-components)
Expand Down Expand Up @@ -97,7 +98,7 @@ export default {
// https://github.com/WilliamDASILVA/nuxt-facebook-pixel-module
'nuxt-facebook-pixel-module',
// https://i18n.nuxtjs.org/
'nuxt-i18n',
'@nuxtjs/i18n',
[
'nuxt-fontawesome',
{
Expand All @@ -124,15 +125,15 @@ export default {
// This module must be at the end of the modules array
'@nuxtjs/sitemap',
],

/** @type {import('@nuxtjs/i18n').i18n} */
i18n: {
strategy: 'prefix',
locale: 'en-us',
defaultLocale: 'en-us',
fallbackLocale: 'en-us',
locales: ['en-us', 'zh-hant'],
detectBrowserLanguage: {
onlyOnRoot: true, // recommended
redirectOn: 'root',
},
},

Expand Down
246 changes: 210 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ddf201e

Please sign in to comment.