From 7d0a6f6ddd4fcf8229f9c37c46a8c508dc356836 Mon Sep 17 00:00:00 2001 From: Piyush Chauhan <42397980+pyshx@users.noreply.github.com> Date: Mon, 1 Jul 2024 23:58:44 +0530 Subject: [PATCH] chore(web): update gql and yarn i18n (#1041) --- web/src/classic/gql/graphql-client-api.tsx | 10 +++ web/src/classic/gql/graphql.schema.json | 81 +++++++++++++++++++++ web/src/services/gql/__gen__/graphql.ts | 10 +++ web/src/services/i18n/translations/en.yml | 82 +++++++++++----------- web/src/services/i18n/translations/ja.yml | 82 +++++++++++----------- 5 files changed, 183 insertions(+), 82 deletions(-) diff --git a/web/src/classic/gql/graphql-client-api.tsx b/web/src/classic/gql/graphql-client-api.tsx index 30162ade78..abaead7655 100644 --- a/web/src/classic/gql/graphql-client-api.tsx +++ b/web/src/classic/gql/graphql-client-api.tsx @@ -1774,6 +1774,7 @@ export type Project = Node & { publishedAt?: Maybe; publishmentStatus: PublishmentStatus; scene?: Maybe; + starred: Scalars['Boolean']['output']; team?: Maybe; teamId: Scalars['ID']['output']; trackingId: Scalars['String']['output']; @@ -1806,6 +1807,12 @@ export type ProjectPayload = { project: Project; }; +export enum ProjectSortType { + Createdat = 'CREATEDAT', + Name = 'NAME', + Updatedat = 'UPDATEDAT' +} + export type Property = Node & { __typename?: 'Property'; id: Scalars['ID']['output']; @@ -2082,7 +2089,9 @@ export type QueryProjectsArgs = { before?: InputMaybe; first?: InputMaybe; includeArchived?: InputMaybe; + keyword?: InputMaybe; last?: InputMaybe; + sort?: InputMaybe; teamId: Scalars['ID']['input']; }; @@ -2666,6 +2675,7 @@ export type UpdateProjectInput = { publicNoIndex?: InputMaybe; publicTitle?: InputMaybe; sceneId?: InputMaybe; + starred?: InputMaybe; trackingId?: InputMaybe; }; diff --git a/web/src/classic/gql/graphql.schema.json b/web/src/classic/gql/graphql.schema.json index 11bc91c4df..8bda6fe3cb 100644 --- a/web/src/classic/gql/graphql.schema.json +++ b/web/src/classic/gql/graphql.schema.json @@ -14006,6 +14006,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "starred", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "team", "description": null, @@ -14290,6 +14306,35 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "ProjectSortType", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "CREATEDAT", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NAME", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UPDATEDAT", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Property", @@ -16522,6 +16567,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "keyword", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "last", "description": null, @@ -16534,6 +16591,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "sort", + "description": null, + "type": { + "kind": "ENUM", + "name": "ProjectSortType", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "teamId", "description": null, @@ -21836,6 +21905,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "starred", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "trackingId", "description": null, diff --git a/web/src/services/gql/__gen__/graphql.ts b/web/src/services/gql/__gen__/graphql.ts index a9a7c12b08..a3c6902431 100644 --- a/web/src/services/gql/__gen__/graphql.ts +++ b/web/src/services/gql/__gen__/graphql.ts @@ -1773,6 +1773,7 @@ export type Project = Node & { publishedAt?: Maybe; publishmentStatus: PublishmentStatus; scene?: Maybe; + starred: Scalars['Boolean']['output']; team?: Maybe; teamId: Scalars['ID']['output']; trackingId: Scalars['String']['output']; @@ -1805,6 +1806,12 @@ export type ProjectPayload = { project: Project; }; +export enum ProjectSortType { + Createdat = 'CREATEDAT', + Name = 'NAME', + Updatedat = 'UPDATEDAT' +} + export type Property = Node & { __typename?: 'Property'; id: Scalars['ID']['output']; @@ -2081,7 +2088,9 @@ export type QueryProjectsArgs = { before?: InputMaybe; first?: InputMaybe; includeArchived?: InputMaybe; + keyword?: InputMaybe; last?: InputMaybe; + sort?: InputMaybe; teamId: Scalars['ID']['input']; }; @@ -2665,6 +2674,7 @@ export type UpdateProjectInput = { publicNoIndex?: InputMaybe; publicTitle?: InputMaybe; sceneId?: InputMaybe; + starred?: InputMaybe; trackingId?: InputMaybe; }; diff --git a/web/src/services/i18n/translations/en.yml b/web/src/services/i18n/translations/en.yml index ce429aa892..efc0d23e5e 100644 --- a/web/src/services/i18n/translations/en.yml +++ b/web/src/services/i18n/translations/en.yml @@ -48,6 +48,7 @@ A To Z: A To Z Z To A: Z To A Size Small to Large: Size Small to Large Size Large to Small: Size Large to Small +Page: Page File Format: File Format File format of the data source you want to add.: File format of the data source you want to add. From Assets: From Assets @@ -79,45 +80,43 @@ Choose layer to add: Choose layer to add Layer of the data source you want to add.: Layer of the data source you want to add layer name: Layer name Layer: Layer -Layers: Layers -All Layers: All Layers -Name: Name -Type: Type -New Property: New Property -Layer Name: Layer Name -Layer name you want to add.: Layer name you want to add. -New Style: New Style -Layer Style: Layer Style -Layer style you want to add.: Layer style you want to add. -General: General -Custom Properties: Custom Properties -New Sketch Layer: New Sketch Layer -Create: Create -Style_: Style_ -Delete: Delete -Main: Main -Tiles: Tiles -Terrain: Terrain -Globe: Globe -Sky: Sky -Camera: Camera -Unknown scene setting: Unknown scene setting -Scene: Scene -Outline: Outline -Add Layer from Resource: Add Layer from Resource -Add Sketch Layer: '' Inspector: Inspector +Format: Format Unsupported custom field: Unsupported custom field ID: ID Geometry: Geometry Properties: Properties +Custom Properties: Custom Properties Data: Data Feature: Feature Styling: Styling Enable Infobox: Enable Infobox Show infobox when the user clicks on a layer: Show infobox when the user clicks on a layer -Format: Format +Add Layer from Resource: Add Layer from Resource +Add Sketch Layer: '' +Layers: Layers +Style_: Style_ +Layer Style: Layer Style +New Style: New Style +Delete: Delete Save: Save +Main: Main +Tiles: Tiles +Terrain: Terrain +Globe: Globe +Sky: Sky +Camera: Camera +Unknown scene setting: Unknown scene setting +Scene: Scene +Name: Name +Type: Type +New Property: New Property +Layer Name: Layer Name +Layer name you want to add.: Layer name you want to add. +Layer style you want to add.: Layer style you want to add. +General: General +New Sketch Layer: New Sketch Layer +Create: Create Published: Published Unpublished: Unpublished Story: Story @@ -152,11 +151,11 @@ Unpublishing: Unpublishing Your project will be unpublished.: Your project will be unpublished. This means that anybody with the URL will become unable to view this project.: This means that anybody with the URL will become unable to view this project. '**Warning**: This includes websites where this project is embedded.': '**Warning**: This includes websites where this project is embedded.' +Page Settings: Page Settings +All Layers: All Layers Untitled: Untitled New Page: New Page -Page: Page -Page Settings: Page Settings -Align System: Align System +Container Settings: Container Settings Padding top: Padding top Padding right: Padding right Padding bottom: Padding bottom @@ -164,11 +163,8 @@ Padding left: Padding left Gap spacing: Gap spacing Align centered: Align centered Background color: Background color +Align System: Align System Widget Manager: Widget Manager -Container Settings: Container Settings -Angle: Angle -Narrow: Narrow -Wide: Wide Please select an asset before clicking Select.: Please select an asset before clicking Select. Select Image: Select Image Select: Select @@ -276,20 +272,22 @@ Background Color: Background Color Something went wrong.: Something went wrong. Couldn't find the Re:Earth project you were after.: Couldn't find the Re:Earth project you were after. New Field: New Field +New Camera: New Camera +New Camera Button: New Camera Button +Buttons List: Buttons List +New Layers Button: New Layers Button +Add markdown text here: Add markdown text here aria-label-compass: compass aria-label-adjust-angle: adjust angle aria-label-zoom-in: zoom in aria-label-Go-to-the-home-position: Go to the home position aria-label-zoom-out: zoom out +Angle: Angle +Narrow: Narrow +Wide: Wide Spacing settings: Spacing settings Block: Block Unsupported field type: Unsupported field type -New Camera: New Camera -New Camera Button: New Camera Button -Buttons List: Buttons List -New Layers Button: New Layers Button -Add markdown text here: Add markdown text here -Drop here: Drop here Write your story :): Write your story :) Normal: Normal Heading 1: Heading 1 @@ -315,6 +313,7 @@ Strikethrough: Strikethrough Subscript: Subscript Superscript: Superscript Clear Formatting: Clear Formatting +Drop here: Drop here Close timeline: Close timeline Playback timeline: Playback timeline Play timeline: Play timeline @@ -543,6 +542,7 @@ Successfully published your project!: Successfully published your project! Successfully published your project with search engine indexing!: Successfully published your project with search engine indexing! Successfully unpublished your project. Now nobody can access your project.: Successfully unpublished your project. Now nobody can access your project. Successfully copied to clipboard!: Successfully copied to clipboard! +Outline: Outline Folder: Folder Widget: Widget Infobox: Infobox diff --git a/web/src/services/i18n/translations/ja.yml b/web/src/services/i18n/translations/ja.yml index 190c4fe9fe..00719c5fea 100644 --- a/web/src/services/i18n/translations/ja.yml +++ b/web/src/services/i18n/translations/ja.yml @@ -48,6 +48,7 @@ A To Z: 昇順(ファイル名) Z To A: 降順(ファイル名) Size Small to Large: 昇順(サイズ) Size Large to Small: 降順(サイズ) +Page: ページ File Format: ファイル形式 File format of the data source you want to add.: 追加したいデータソースのファイル形式を選択 From Assets: アセットから追加 @@ -77,45 +78,43 @@ Choose layer to add: レイヤーの選択 Layer of the data source you want to add.: 追加したいデータソースのレイヤーを選択 layer name: レイヤー名 Layer: レイヤー -Layers: レイヤー -All Layers: 全てのレイヤー -Name: 名前 -Type: '' -New Property: '' -Layer Name: '' -Layer name you want to add.: '' -New Style: '' -Layer Style: レイヤースタイル -Layer style you want to add.: '' -General: '' -Custom Properties: '' -New Sketch Layer: '' -Create: 作成 -Style_: スタイル_ -Delete: 削除 -Main: メイン -Tiles: タイル -Terrain: 地形 -Globe: 地球 -Sky: 空 -Camera: カメラ -Unknown scene setting: 不明なシーン設定 -Scene: シーン -Outline: アウトライン -Add Layer from Resource: リソースからレイヤーを追加 -Add Sketch Layer: スケッチレイヤーを追加 Inspector: インスペクター +Format: フォーマット Unsupported custom field: '' ID: ID Geometry: ジオメトリ Properties: プロパティ +Custom Properties: '' Data: データ Feature: フィーチャー Styling: スタイリング Enable Infobox: インフォボックスを有効化 Show infobox when the user clicks on a layer: フェーチャーをクリックした際にインフォボックスを表示 -Format: フォーマット +Add Layer from Resource: リソースからレイヤーを追加 +Add Sketch Layer: スケッチレイヤーを追加 +Layers: レイヤー +Style_: スタイル_ +Layer Style: レイヤースタイル +New Style: '' +Delete: 削除 Save: 保存 +Main: メイン +Tiles: タイル +Terrain: 地形 +Globe: 地球 +Sky: 空 +Camera: カメラ +Unknown scene setting: 不明なシーン設定 +Scene: シーン +Name: 名前 +Type: '' +New Property: '' +Layer Name: '' +Layer name you want to add.: '' +Layer style you want to add.: '' +General: '' +New Sketch Layer: '' +Create: 作成 Published: 一般公開 Unpublished: 非公開 Story: ストーリー @@ -146,11 +145,11 @@ Unpublishing: 非公開 Your project will be unpublished.: プロジェクトを非公開にする This means that anybody with the URL will become unable to view this project.: URLを知っている人でもこのプロジェクトを見ることができなくなります。 '**Warning**: This includes websites where this project is embedded.': '**Warning**このプロジェクトを埋め込んだWebサイトへ影響を及ぼす可能性があります。' +Page Settings: ページ設定 +All Layers: 全てのレイヤー Untitled: タイトルなし New Page: 新しいページ -Page: ページ -Page Settings: ページ設定 -Align System: アラインシステム +Container Settings: コンテナ設定 Padding top: 上の余白 Padding right: 右の余白 Padding bottom: 下の余白 @@ -158,11 +157,8 @@ Padding left: 左の余白 Gap spacing: 間隔 Align centered: 中央に配置 Background color: 背景色 +Align System: アラインシステム Widget Manager: ウィジェット管理 -Container Settings: コンテナ設定 -Angle: 角度 -Narrow: 狭い -Wide: 広い Please select an asset before clicking Select.: アセットを選んで「選択」をクリックしてください。 Select Image: イメージ選択 Select: 選択 @@ -255,20 +251,22 @@ Background Color: 背景色 Something went wrong.: 失敗しました。 Couldn't find the Re:Earth project you were after.: そのRe:Earthプロジェクトは見つかりませんでした。 New Field: 新しいフィールド +New Camera: 新しいカメラ +New Camera Button: 新しいカメラボタン +Buttons List: ボタン一覧 +New Layers Button: 新しいレイヤーボタン +Add markdown text here: マークダウンテキストを入力 aria-label-compass: コンパス aria-label-adjust-angle: 角度を調節する aria-label-zoom-in: ズームイン aria-label-Go-to-the-home-position: 元の位置に戻る aria-label-zoom-out: ズームアウト +Angle: 角度 +Narrow: 狭い +Wide: 広い Spacing settings: 余白設定 Block: ブロック Unsupported field type: サポートされていないフィールドタイプです -New Camera: 新しいカメラ -New Camera Button: 新しいカメラボタン -Buttons List: ボタン一覧 -New Layers Button: 新しいレイヤーボタン -Add markdown text here: マークダウンテキストを入力 -Drop here: ここにドロップ Write your story :): ストーリーを書きましょう! Normal: 標準テキスト Heading 1: 見出し1 @@ -294,6 +292,7 @@ Strikethrough: 取り消し線 Subscript: 下付き文字 Superscript: 上付き文字 Clear Formatting: 書式をクリア +Drop here: ここにドロップ Close timeline: タイムラインを閉じる Playback timeline: タイムラインを逆再生する Play timeline: タイムラインを再生する @@ -500,6 +499,7 @@ Successfully published your project!: プロジェクトの公開に成功しま Successfully published your project with search engine indexing!: 検索エンジンのインデックス含めてプロジェクトの公開に成功しました! Successfully unpublished your project. Now nobody can access your project.: プロジェクトは非公開状態です。現在、誰も閲覧することはできません。 Successfully copied to clipboard!: クリップボードにコピーしました。 +Outline: アウトライン Folder: 新規フォルダ Widget: ウィジェット Infobox: インフォボックス