summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2026-09-22 19:40:04 +0200
committerxengineering <me@xengineering.eu>2026-09-22 19:40:04 +0200
commit77b430668db6cc0f5098dd92f7d84413bdd9f94d (patch)
tree71a1da1cde6fce79097216f19e4a82e75400bae2
parente9f02b54252be4de1dbc071c91064d902c35a509 (diff)
downloadceres-step-re-ordering.tar
ceres-step-re-ordering.tar.zst
ceres-step-re-ordering.zip
WIP: view: dart: Detect pagestep-re-ordering
-rw-r--r--view/dart/ceres.dart13
1 files changed, 13 insertions, 0 deletions
diff --git a/view/dart/ceres.dart b/view/dart/ceres.dart
index 541e6ff..86073b6 100644
--- a/view/dart/ceres.dart
+++ b/view/dart/ceres.dart
@@ -1,6 +1,19 @@
import 'package:web/web.dart' as web;
+final RegExp recipeRegex = RegExp(r'^\/recipe\/(\d+)$');
+
void main() {
print('Dart infrastructure is available.');
print('Window location: `${web.window.location}`');
+
+ if (recipeRegex.hasMatch(web.window.location.pathname)) {
+ recipe();
+ return;
+ }
+
+ print('Frontend code is inactive for this path `${web.window.location.pathname}`.');
+}
+
+void recipe() {
+ print('Handling /recipe page.');
}