Skip to content

Commit

Permalink
feat(web): add google map search function and ui (#1318)
Browse files Browse the repository at this point in the history
Co-authored-by: tcsola <[email protected]>
Co-authored-by: airslice <[email protected]>
  • Loading branch information
3 people authored Jan 15, 2025
1 parent c8910cc commit 215b0a7
Show file tree
Hide file tree
Showing 8 changed files with 441 additions and 12 deletions.
17 changes: 17 additions & 0 deletions server/pkg/builtin/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2349,6 +2349,23 @@ extensions:
label: Light
- key: dark
label: Dark
- id: languageSetting
title: Language Setting
fields:
- id: language
type: string
title: Language
defaultValue: auto
choices:
- key: auto
label: Auto
- key: en
label: English
- key: ja
label: Japanese
- key: cn
label: Chinese

- id: story
name: Story
type: story
Expand Down
29 changes: 29 additions & 0 deletions server/pkg/builtin/manifest_ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1426,4 +1426,33 @@ extensions:
url:
title: リンクURL

googleMapSearch:
name: Googleマップ検索(実験版)
description: Googleマップを利用して地図上の場所を検索できるウィジェット
propertySchema:
default:
title: Googleマップ検索ウィジェット
fields:
apiToken:
title: APIトークン
description: Google Maps APIキー
appearance:
title: 外観
fields:
theme:
title: テーマ
choices:
light: 明るい
dark: 暗い
languageSetting:
title: 言語設定
fields:
language:
title: 言語
choices:
auto: 自動
en: 英語
ja: 日本語
cn: 中国語


2 changes: 2 additions & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
"@emotion/styled": "11.11.0",
"@floating-ui/dom": "1.6.10",
"@floating-ui/react": "0.24.7",
"@googlemaps/js-api-loader": "1.16.8",
"@graphiql/toolkit": "0.11.0",
"@lexical/code": "0.12.0",
"@lexical/hashtag": "0.12.0",
Expand All @@ -132,6 +133,7 @@
"@rot1024/use-transition": "1.0.0",
"@sentry/browser": "7.77.0",
"@seznam/compose-react-refs": "1.0.6",
"@types/google.maps": "3.58.1",
"@ungap/event-target": "0.2.4",
"apollo-link-sentry": "3.2.3",
"apollo-upload-client": "18.0.1",
Expand Down
Loading

0 comments on commit 215b0a7

Please sign in to comment.