@articles-media/articles-dev-box 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -73,6 +73,8 @@ npm run dev
|
|
|
73
73
|
- Array of strings that every game published by Articles Media would want to normally exclude from persisting in base game store.
|
|
74
74
|
- typicalZustandStoreStateSlice
|
|
75
75
|
- Slice of zustand states that every game normally uses
|
|
76
|
+
- getSignOutRedirectUrl
|
|
77
|
+
- Handles signout redirect api logic
|
|
76
78
|
|
|
77
79
|
# Usage Examples
|
|
78
80
|
For newly developed components I sometimes find myself trying to remember what repos used it. Here is a short list of recent components developed and what project is using it. Doing this until AMPM can search by imports or enough projects adopted the component.
|
|
@@ -80,6 +82,7 @@ For newly developed components I sometimes find myself trying to remember what r
|
|
|
80
82
|
- typicalZustandStoreExcludes - Catching Game and School Run
|
|
81
83
|
- SessionButton - Catching Game and School Run
|
|
82
84
|
- GameMenu - Catching Game and School Run use Static Panel for sidebarStyle and Corner Button for menuBarStyle. Ice Slide uses Floating Panel for sidebarStyle and Bar for menuBarStyle.
|
|
85
|
+
- getSignOutRedirectUrl - Catching Game
|
|
83
86
|
|
|
84
87
|
# Roadmap
|
|
85
88
|
⏹️ Remove Bootstrap reliance?
|
|
@@ -232,7 +232,7 @@ function OtherTab({ useStore, config }) {
|
|
|
232
232
|
var package_default = {
|
|
233
233
|
name: "@articles-media/articles-dev-box",
|
|
234
234
|
description: "Shared code, functions, and components for different Articles Media projects.",
|
|
235
|
-
version: "1.0.
|
|
235
|
+
version: "1.0.38",
|
|
236
236
|
type: "module",
|
|
237
237
|
imports: { "#root/src/*": "./src/*" },
|
|
238
238
|
main: "./dist/index.js",
|
|
@@ -266,6 +266,7 @@ var package_default = {
|
|
|
266
266
|
"./useFullscreen": "./dist/useFullscreen.js",
|
|
267
267
|
"./typicalZustandStoreExcludes": "./dist/typicalZustandStoreExcludes.js",
|
|
268
268
|
"./typicalZustandStoreStateSlice": "./dist/typicalZustandStoreStateSlice.js",
|
|
269
|
+
"./getSignOutRedirectUrl": "./dist/getSignOutRedirectUrl.js",
|
|
269
270
|
"./dist/style.css": "./dist/articles-dev-box.css",
|
|
270
271
|
"./dist/articles-dev-box.css": "./dist/articles-dev-box.css"
|
|
271
272
|
},
|
package/dist/SettingsModal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SettingsModal } from "./SettingsModal-
|
|
1
|
+
import { t as SettingsModal } from "./SettingsModal-DDrykvTH.js";
|
|
2
2
|
export { SettingsModal as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/util/getSignOutRedirectUrl.js
|
|
2
|
+
async function getSignOutRedirectUrl(req) {
|
|
3
|
+
const { searchParams } = new URL(req.url);
|
|
4
|
+
const passedRedirect = searchParams.get("redirect") || "/";
|
|
5
|
+
return `${process.env.NODE_ENV === "development" ? "http://localhost:3012" : "https://accounts.articles.media"}/api/signout?redirect=${encodeURIComponent(passedRedirect)}`;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { getSignOutRedirectUrl as default };
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { t as GameMenu } from "./GameMenu-CyW1MF3Y.js";
|
|
|
12
12
|
import { t as GameScoreboard } from "./GameScoreboard-CYuTBE_E.js";
|
|
13
13
|
import GlobalHead from "./GlobalHead.js";
|
|
14
14
|
import GlobalBody_default from "./GlobalBody.js";
|
|
15
|
-
import { t as SettingsModal } from "./SettingsModal-
|
|
15
|
+
import { t as SettingsModal } from "./SettingsModal-DDrykvTH.js";
|
|
16
16
|
import CreditsModal from "./CreditsModal.js";
|
|
17
17
|
import DarkModeHandler from "./DarkModeHandler.js";
|
|
18
18
|
import ToontownModeHandler from "./ToontownModeHandler.js";
|
|
@@ -20,4 +20,5 @@ import SocketServerUrlHandler from "./SocketServerUrlHandler.js";
|
|
|
20
20
|
import useFullscreen from "./useFullscreen.js";
|
|
21
21
|
import typicalZustandStoreExcludes from "./typicalZustandStoreExcludes.js";
|
|
22
22
|
import typicalZustandStoreStateSlice from "./typicalZustandStoreStateSlice.js";
|
|
23
|
-
|
|
23
|
+
import getSignOutRedirectUrl from "./getSignOutRedirectUrl.js";
|
|
24
|
+
export { Ad_default as Ad, ArticlesAd, CreditsModal, DarkModeHandler, FriendsList, GameMenu, GameScoreboard, GlobalBody_default as GlobalBody, GlobalHead, ReturnToLauncherButton, SessionButton, SettingsModal, SignInButton, SocketServerUrlHandler, ToontownModeHandler, ViewUserModal, getSignOutRedirectUrl, typicalZustandStoreExcludes, typicalZustandStoreStateSlice, useFullscreen, useUserDetails, useUserFriends, useUserToken };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@articles-media/articles-dev-box",
|
|
3
3
|
"description": "Shared code, functions, and components for different Articles Media projects.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.38",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
7
7
|
"#root/src/*": "./src/*"
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"./useFullscreen": "./dist/useFullscreen.js",
|
|
40
40
|
"./typicalZustandStoreExcludes": "./dist/typicalZustandStoreExcludes.js",
|
|
41
41
|
"./typicalZustandStoreStateSlice": "./dist/typicalZustandStoreStateSlice.js",
|
|
42
|
+
"./getSignOutRedirectUrl": "./dist/getSignOutRedirectUrl.js",
|
|
42
43
|
"./dist/style.css": "./dist/articles-dev-box.css",
|
|
43
44
|
"./dist/articles-dev-box.css": "./dist/articles-dev-box.css"
|
|
44
45
|
},
|