Skip to content

Commit

Permalink
add:
Browse files Browse the repository at this point in the history
  • Loading branch information
YumNumm committed Feb 28, 2025
1 parent 55593c7 commit 5c6a85d
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 128 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ unlinked_spec.ds
**/android/**/GeneratedPluginRegistrant.java
**/android/key.properties
*.jks
**/.cxx

# iOS/XCode related
**/ios/**/*.mode1v3
Expand Down
5 changes: 4 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
## コマンド

### ビルド・実行

- ビルドランナー: `dart run build_runner build -d`
- クリーン&再ビルド: `melos clean-all`

### テスト

- 全テスト実行: `melos run test`
- Flutterテスト実行: `melos run test:flutter`
- Dartテスト実行: `melos run test:dart`
- テストレポート: `melos run report:test`

### リント・解析

- 全体解析: `melos run analyze`
- カスタムリント: `dart run custom_lint`

Expand All @@ -25,4 +28,4 @@
- **エラーハンドリング**: 適切なエラー伝播;ログにはtalkerを使用
- ****: freezedで不変モデルを使用した強い型付け
- **ウィジェット構造**: 可能な限り単一子ウィジェットを避ける
- **アーキテクチャ**: コードをcore、feature、pageの層に分離
- **アーキテクチャ**: コードをcore、feature、pageの層に分離
2 changes: 1 addition & 1 deletion app/lib/core/provider/jma_parameter/jma_parameter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class JmaParameter extends _$JmaParameter {
streamController.add((
earthquake: earthquake!,
tsunami: tsunami!,
));
),);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,7 @@ class KyoshinMonitorScaleColorPage extends HookWidget {
diff.value = d;
diffParam.value = val2 - val;
// ignore: deprecated_member_use
rgbString.value =
'RGB(${c.red}, ${c.green}, ${c.blue})';
rgbString.value = 'RGB(${c.r}, ${c.g}, ${c.b})';
}

return Scaffold(
Expand Down
8 changes: 2 additions & 6 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies:
sdk: flutter
flutter_colorpicker: ^1.1.0
flutter_email_sender: ^7.0.0
flutter_hooks: ^0.20.5
flutter_hooks: ^0.21.2
flutter_html: ^3.0.0-alpha.2
flutter_local_notifications: ^18.0.1
flutter_localizations:
Expand Down Expand Up @@ -77,11 +77,7 @@ dependencies:
# git :
# url: [email protected]:YumNumm/flutter-maplibre.git
# ref: ios
maplibre_gl:
git:
url: https://github.com/YumNumm/flutter-maplibre-gl.git
ref: f40da2de85b4c30bb1f17ff647e49dfaa3056f1f
path: maplibre_gl
maplibre_gl: ^0.21.0
notification_setting_types:
path: ../packages/notification_setting_types
ntp: ^2.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,73 +81,72 @@ class KyoshinMonitorWebApiDataSource {
@JsonEnum(valueField: 'urlString')
enum RealtimeDataType {
/// 震度
shindo('震度', 'jma', false),
shindo('震度', 'jma', isLpgm: false),

/// 最大加速度
pga('最大加速度', 'acmap', false),
pga('最大加速度', 'acmap', isLpgm: false),

/// 最大速度
pgv('最大速度', 'vcmap', false),
pgv('最大速度', 'vcmap', isLpgm: false),

/// 最大変位
pgd('最大変位', 'dcmap', false),
pgd('最大変位', 'dcmap', isLpgm: false),

/// 速度応答0.125Hz
response0125Hz('速度応答0.125Hz', 'rsp0125', false),
response0125Hz('速度応答0.125Hz', 'rsp0125', isLpgm: false),

/// 速度応答0.25Hz
response025Hz('速度応答0.25Hz', 'rsp0250', false),
response025Hz('速度応答0.25Hz', 'rsp0250', isLpgm: false),

/// 速度応答0.5Hz
response05Hz('速度応答0.5Hz', 'rsp0500', false),
response05Hz('速度応答0.5Hz', 'rsp0500', isLpgm: false),

/// 速度応答1Hz
response1Hz('速度応答1Hz', 'rsp1000', false),
response1Hz('速度応答1Hz', 'rsp1000', isLpgm: false),

/// 速度応答2Hz
response2Hz('速度応答2Hz', 'rsp2000', false),
response2Hz('速度応答2Hz', 'rsp2000', isLpgm: false),

/// 速度応答4Hz
response4Hz('速度応答4Hz', 'rsp4000', false),
response4Hz('速度応答4Hz', 'rsp4000', isLpgm: false),

/// 長周期地震動階級
/// Lpgm系列でのみ利用可
abrspmx('長周期地震動階級', 'abrspmx', true),
abrspmx('長周期地震動階級', 'abrspmx', isLpgm: true),

/// 階級データ(周期1秒台)
/// Lpgm系列でのみ利用可
abrsp1s('階級データ(周期1秒台)', 'abrsp1s', true),
abrsp1s('階級データ(周期1秒台)', 'abrsp1s', isLpgm: true),

/// 階級データ(周期2秒台)
/// Lpgm系列でのみ利用可
abrsp2s('階級データ(周期2秒台)', 'abrsp2s', true),
abrsp2s('階級データ(周期2秒台)', 'abrsp2s', isLpgm: true),

/// 階級データ(周期3秒台)
/// Lpgm系列でのみ利用可
abrsp3s('階級データ(周期3秒台)', 'abrsp3s', true),
abrsp3s('階級データ(周期3秒台)', 'abrsp3s', isLpgm: true),

/// 階級データ(周期4秒台)
/// Lpgm系列でのみ利用可
abrsp4s('階級データ(周期4秒台)', 'abrsp4s', true),
abrsp4s('階級データ(周期4秒台)', 'abrsp4s', isLpgm: true),

/// 階級データ(周期5秒台)
/// Lpgm系列でのみ利用可
abrsp5s('階級データ(周期5秒台)', 'abrsp5s', true),
abrsp5s('階級データ(周期5秒台)', 'abrsp5s', isLpgm: true),

/// 階級データ(周期6秒台)
/// Lpgm系列でのみ利用可
abrsp6s('階級データ(周期6秒台)', 'abrsp6s', true),
abrsp6s('階級データ(周期6秒台)', 'abrsp6s', isLpgm: true),

/// 階級データ(周期7秒台)
/// Lpgm系列でのみ利用可
abrsp7s('階級データ(周期7秒台)', 'abrsp7s', true);
abrsp7s('階級データ(周期7秒台)', 'abrsp7s', isLpgm: true);

// ignore: avoid_positional_boolean_parameters
const RealtimeDataType(
this.displayName,
this.urlString,
this.isLpgm,
);
this.urlString, {
required this.isLpgm,
});

/// 表示名
final String displayName;
Expand Down
Loading

0 comments on commit 5c6a85d

Please sign in to comment.