-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8feb85c
Showing
242 changed files
with
21,662 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.git | ||
**/.yarn/cache | ||
**/.yarn/unplugged | ||
**/.yarn/build-state.yml | ||
**/.yarn/install-state.gz | ||
**/.pnp.* | ||
**/.next | ||
**/node_modules | ||
**/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.eslintrc.js | ||
next.config.js | ||
postcss.config.js | ||
tailwind.config.js | ||
**/webpack.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
root: true | ||
env: | ||
node: true | ||
es2022: true | ||
extends: | ||
- eslint:recommended | ||
- plugin:import/recommended | ||
- plugin:import/typescript | ||
- plugin:@typescript-eslint/eslint-recommended | ||
- plugin:@typescript-eslint/recommended | ||
- plugin:@next/next/recommended | ||
- prettier | ||
parser: '@typescript-eslint/parser' | ||
parserOptions: | ||
sourceType: module | ||
project: | ||
- ./tsconfig.json | ||
- ./packages/*/tsconfig.json | ||
plugins: | ||
- '@typescript-eslint' | ||
- simple-import-sort | ||
- import | ||
ignorePatterns: | ||
- node_modules/ | ||
- dist/ | ||
settings: | ||
import/parsers: | ||
'@typescript-eslint/parser': | ||
- .ts | ||
- .tsx | ||
import/resolver: | ||
typescript: | ||
project: | ||
- ./tsconfig.json | ||
- ./packages/*/tsconfig.json | ||
rules: | ||
simple-import-sort/imports: | ||
- error | ||
- groups: | ||
- - ^\u0000 | ||
- - '^node:' | ||
- - ^@?\w | ||
- - ^spatial-id- | ||
- - ^#app/ | ||
- - ^ | ||
- - ^\. | ||
simple-import-sort/exports: error | ||
no-restricted-imports: | ||
- warn | ||
# - patterns: | ||
# - group: | ||
# - ../* | ||
# - ./* | ||
# message: Absolute imports by @/ are preferred. | ||
no-constant-condition: | ||
- error | ||
- checkLoops: false | ||
'@typescript-eslint/no-explicit-any': off | ||
'@typescript-eslint/no-non-null-assertion': off | ||
'@typescript-eslint/triple-slash-reference': off | ||
'@next/next/no-img-element': off | ||
globals: | ||
document: true | ||
window: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.pnpm-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
web_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional stylelint cache | ||
.stylelintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variable files | ||
.env | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env.local | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Next.js build output | ||
.next | ||
out | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# vuepress v2.x temp and cache directory | ||
.temp | ||
.cache | ||
|
||
# Docusaurus cache and generated files | ||
.docusaurus | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# yarn v2 | ||
**/.yarn/cache | ||
**/.yarn/unplugged | ||
**/.yarn/build-state.yml | ||
**/.yarn/install-state.gz | ||
.pnp.* | ||
|
||
**/public/static/cesium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
printWidth: 100 | ||
singleQuote: true | ||
trailingComma: es5 | ||
useTabs: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"typescript.preferences.importModuleSpecifier": "non-relative", | ||
"eslint.format.enable": false, | ||
"eslint.validate": ["typescript", "javascript"] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yarnPath: .yarn/releases/yarn-3.5.0.cjs | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Trajectory, Ltd | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# spatial_id_viewer | ||
|
||
空間IDビューアーとその関連ライブラリ | ||
|
||
* [ドキュメント](./documents/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
server { | ||
listen 8080; | ||
server_name localhost; | ||
server_tokens off; | ||
|
||
root /usr/share/nginx/html; | ||
|
||
location /_next/ {} | ||
location /static/ {} | ||
location / { | ||
try_files /_redirect.html =404; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# spatial_id_viewer ドキュメント | ||
|
||
## 空間IDビューアー | ||
|
||
Cesium ベースのビューアーアプリケーションです。 | ||
|
||
* [ビューアーのビルド方法](../packages/spatial-id-viewer/README.md) | ||
|
||
## ライブラリ | ||
|
||
ビューアーアプリケーションを独自に開発する際等の利用を想定した、上記ビューアーの機能を切り出したライブラリです。 | ||
|
||
以下のライブラリを用意しています: | ||
|
||
| ライブラリ名 | 機能 | | ||
| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | ||
| [spatial-id-converter](../packages/spatial-id-converter) | 空間 ID を Cesium で読み込み可能な 3D モデルに変換、日本付近のジオイド高の取得など | | ||
| [spatial-id-svc-base](../packages/spatial-id-svc-base) | 各種 REST API ラッパーの共通部分、共通エラークラスなど | | ||
| [spatial-id-svc-common](../packages/spatial-id-svc-common) | REST API トークン取得、共通インターフェース定義など | | ||
| [spatial-id-svc-area](../packages/spatial-id-svc-area) | area service の REST API ラッパー | | ||
| [spatial-id-svc-route](../packages/spatial-id-svc-route) | route service の REST API ラッパー | | ||
|
||
* [ライブラリのビルド方法](./how-to-build-libraries.md) | ||
* [ライブラリの使用方法](./how-to-use-libraries.md) | ||
* [ライブラリを使用したサンプルプロジェクト](../examples) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# ライブラリのビルド方法 | ||
|
||
## ビルドに必要な環境 | ||
|
||
* UNIX 系 OS (Linux, macOS, WSL2 等) | ||
* Node.js 16 以降 | ||
* Yarn | ||
|
||
|
||
## 事前準備 | ||
|
||
* リポジトリのルートで `yarn` を実行し、依存パッケージのインストールを行います。 | ||
|
||
|
||
## ビルド | ||
|
||
* ライブラリのディレクトリ (packages/ 配下にある viewer 以外のディレクトリ) に cd します。 | ||
* yarn build を実行します。 | ||
|
||
ビルドが終了すると、dist/ ディレクトリにビルド済みファイルが生成されます。生成されるファイルは次の通りです。 | ||
|
||
| ファイル名 | 概要 | | ||
| ------------ | ------------------------------------------------------------------------------------------ | | ||
| index.js | 本体。ブラウザーから直接利用する際はこのファイルのみが必要。 | | ||
| index.d.ts | TypeScript の型定義ファイル。ライブラリとしての全インターフェース仕様が記載される。 | | ||
| index.js.map | ソースマップファイル。デバッガーでのデバッグの際、元のソース位置を特定するためのファイル。 | | ||
| package.json | ディレクトリを npm モジュールとして認識させるためのファイル。 | |
Oops, something went wrong.