Skip to content

Commit

Permalink
#128 workflowsのバージョンを変更、ディレクト構成を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Feb 3, 2025
1 parent fbe55e9 commit 2d3d64e
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install
- run: npm run test

8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
macos-browser-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install
- run: npx eslint ./src/**/*.ts

windows-browser-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install
- run: npx eslint ./src/**/*.ts
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion Framework_Flowchart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { execute } from "./RequestParser";
import { $setConfig } from "../../../application/variable/Config";
import { execute } from "../../../infrastructure/Request/service/RequestParser";
import { $setConfig } from "../../variable/Config";
import { describe, expect, it } from "vitest";

describe("RequestParserTest", () =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IRequest } from "src/interface/IRequest";
import type { IRouting } from "src/interface/IRouting";
import type { IRequest } from "../../../interface/IRequest";
import type { IRouting } from "../../../interface/IRouting";
import { $getConfig } from "../../../application/variable/Config";

/**
Expand Down
4 changes: 2 additions & 2 deletions src/application/content/MovieClipContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { MovieClip } from "@next2d/display";
import { execute as contentBuilder } from "./Builder/service/ContentBuilderService";

/**
* @description NoCode Toolで作成したMovieClipの動的生成の補完を行うクラス。
* A class that complements the dynamic generation of MovieClip created by the NoCode Tool.
* @description Animation Toolで作成したMovieClipの動的生成の補完を行うクラス。
* A class that complements the dynamic generation of MovieClip created by the Animation Tool.
*
* @class
* @memberof application.content
Expand Down
4 changes: 2 additions & 2 deletions src/application/content/ShapeContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Shape } from "@next2d/display";
import { execute as contentBuilder } from "./Builder/service/ContentBuilderService";

/**
* @description NoCode Toolで作成したShapeの動的生成の補完を行うクラス。
* A class that complements the dynamic generation of Shape created by the NoCode Tool.
* @description Animation Toolで作成したShapeの動的生成の補完を行うクラス。
* A class that complements the dynamic generation of Shape created by the Animation Tool.
*
* @class
* @memberof application.content
Expand Down
4 changes: 2 additions & 2 deletions src/application/content/TextFieldContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { TextField } from "@next2d/text";
import { execute as contentBuilder } from "./Builder/service/ContentBuilderService";

/**
* @description NoCode Toolで作成したTextFieldの動的生成の補完を行うクラス。
* A class that complements the dynamic generation of TextField created by the NoCode Tool.
* @description Animation Toolで作成したTextFieldの動的生成の補完を行うクラス。
* A class that complements the dynamic generation of TextField created by the Animation Tool.
*
* @class
* @memberof application.content
Expand Down
4 changes: 2 additions & 2 deletions src/application/content/VideoContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Video } from "@next2d/media";
import { execute as contentBuilder } from "./Builder/service/ContentBuilderService";

/**
* @description NoCode Toolで作成したVideoの動的生成の補完を行うクラス。
* A class that complements the dynamic generation of Video created by the NoCode Tool.
* @description Animation Toolで作成したVideoの動的生成の補完を行うクラス。
* A class that complements the dynamic generation of Video created by the Animation Tool.
*
* @class
* @memberof application.content
Expand Down
25 changes: 13 additions & 12 deletions src/infrastructure/Response/usecase/RemoveResponse.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
import { execute as requestParser } from "../../Request/service/RequestParser";
import type { DisplayObject } from "@next2d/display";
import { execute as configParserRequestsPropertyService } from "../../../application/Config/service/ConfigParserRequestsPropertyService";
import { loaderInfoMap } from "../../../application/variable/LoaderInfoMap";
import { response } from "../variable/Response";
import type { LoaderInfo } from "@next2d/display";
import type { ParentImpl } from "@next2d/interface";
import { IRequest } from "../../../interface/IRequest";

/**
* @description レスポンスデータを削除、キャッシュ設定があれば削除しない
* Remove response data, do not remove if cache setting is present
*
* @param {string} name
* @return {void}
* @method
* @public
*/
export const execute = (name: string): void =>
export const execute = <D extends DisplayObject> (name: string): void =>
{
const requests: IRequest[] = requestParser(name);
for (let idx: number = 0; idx < requests.length; ++idx) {
const requests = configParserRequestsPropertyService(name);
for (let idx = 0; idx < requests.length; ++idx) {

const object: IRequest = requests[idx];
const object = requests[idx];

if (object.type !== "content") {
continue;
Expand All @@ -33,10 +34,10 @@ export const execute = (name: string): void =>
* キャッシュしないパッケージはインメモリから削除
* Remove non-cached packages from in-memory
*/
const content: ParentImpl<any> = response.get(object.name);
const contentLoaderInfo: LoaderInfo | null = content._$loaderInfo;
if (contentLoaderInfo && contentLoaderInfo._$data) {
const symbols: Map<string, any> = contentLoaderInfo._$data.symbols;
const content = response.get(object.name) as D;
const contentLoaderInfo = content.loaderInfo;
if (contentLoaderInfo && contentLoaderInfo.data) {
const symbols: Map<string, number> = contentLoaderInfo.data.symbols;
if (symbols.size) {
for (const name of symbols.keys()) {
loaderInfoMap.delete(name);
Expand Down

0 comments on commit 2d3d64e

Please sign in to comment.