-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make dialog controllable with gamepad
- Loading branch information
1 parent
406d37e
commit c79f1db
Showing
12 changed files
with
297 additions
and
125 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var createErrorDialog = function (route, id) { | ||
route("errorDialog", "customRoutes/categories.$category.errorDialog.tsx", { | ||
id: "".concat(id, "ErrorDialog"), | ||
}); | ||
}; | ||
var createSettingsRoutes = function (route, id) { | ||
route("settings", "customRoutes/categories.$category.settings.tsx", { | ||
id: id, | ||
}, function () { | ||
route("", "customRoutes/categories.$category.settings._index.tsx", { | ||
index: true, | ||
id: "".concat(id, "SettingsIndex"), | ||
}); | ||
route("general", "customRoutes/categories.$category.settings.general.tsx", { | ||
id: "".concat(id, "SettingsGeneral"), | ||
}, function () { | ||
createErrorDialog(route, "".concat(id, "SettingsGeneral")); | ||
}); | ||
route("appearance", "customRoutes/categories.$category.settings.appearance.tsx", { | ||
id: "".concat(id, "SettingsAppearance"), | ||
}); | ||
}); | ||
}; | ||
var createCategoriesRoutes = function (route) { | ||
route("categories", "customRoutes/categories.tsx", {}, function () { | ||
route(":category", "customRoutes/categories.$category.tsx", function () { | ||
createSettingsRoutes(route, "category"); | ||
createErrorDialog(route, "category"); | ||
}); | ||
}); | ||
}; | ||
var appConfig = { | ||
appDirectory: "app", | ||
serverModuleFormat: "cjs", | ||
routes: function (defineRoutes) { | ||
return defineRoutes(function (route) { | ||
route("/", "customRoutes/_index.tsx", { index: true }); | ||
createCategoriesRoutes(route); | ||
createSettingsRoutes(route, "initial"); | ||
}); | ||
}, | ||
postcss: true, | ||
}; | ||
exports.default = appConfig; |
Oops, something went wrong.