microboard-ui-temp 0.1.67 → 0.1.69
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/dist/index.js +12 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -337834,6 +337834,9 @@ function createConnection(getCurrentBoard, getAccount3, getStorage) {
|
|
|
337834
337834
|
return;
|
|
337835
337835
|
}
|
|
337836
337836
|
async function subscribe2(board) {
|
|
337837
|
+
if (board.getBoardId() === "welcome") {
|
|
337838
|
+
return;
|
|
337839
|
+
}
|
|
337837
337840
|
await invalidateToken();
|
|
337838
337841
|
const boardId = board.getBoardId();
|
|
337839
337842
|
const subject = subscriptions.get(boardId);
|
|
@@ -446306,11 +446309,7 @@ function WelcomePage() {
|
|
|
446306
446309
|
await app2.openBoard(lastBoardId);
|
|
446307
446310
|
return lastBoardId;
|
|
446308
446311
|
}
|
|
446309
|
-
|
|
446310
|
-
await app2.openBoard(boardId);
|
|
446311
|
-
const board = app2.getBoard();
|
|
446312
|
-
pasteWelcomeBoardData(board, i18n7.language);
|
|
446313
|
-
return boardId;
|
|
446312
|
+
return "welcome";
|
|
446314
446313
|
};
|
|
446315
446314
|
import_react419.default.useEffect(() => {
|
|
446316
446315
|
createPublicBoard(app).then((boardId) => {
|
|
@@ -448709,6 +448708,14 @@ function createApp(isHistory = true) {
|
|
|
448709
448708
|
const authInterceptor = getAuthInterceptor(account);
|
|
448710
448709
|
api.interceptors.addRequestInterceptor(authInterceptor);
|
|
448711
448710
|
async function openBoard(id3, accessKey) {
|
|
448711
|
+
if (id3 === "welcome") {
|
|
448712
|
+
const welcomeBoard = new Board("welcome");
|
|
448713
|
+
pasteWelcomeBoardData(welcomeBoard, conf.i18n.language);
|
|
448714
|
+
subscriptions.setBoard(welcomeBoard);
|
|
448715
|
+
boardSubject.publish(welcomeBoard);
|
|
448716
|
+
board = welcomeBoard;
|
|
448717
|
+
return;
|
|
448718
|
+
}
|
|
448712
448719
|
const appBoard = app.getBoard();
|
|
448713
448720
|
if (id3 === "boards" || appBoard?.getBoardId() === id3) {
|
|
448714
448721
|
return;
|