The complete working Admin, ready to run on your own computer.
Download and double click. Nothing else to install, nothing else to copy.
admin-standalone.htmlContains admin-standalone.html plus admin-package/ with
admin.html, the shared/ folder, a README and a one command local server.
Two reasons, both fixed above.
./shared/:
rideshare-sync.v1.js (trip, fare, payment and merge rules) and
firebase-canonical.v1.js (which Firebase project is which). Copying one file leaves those behind.Access to script at 'file:///.../shared/rideshare-sync.v1.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: chrome, chrome-untrusted, data, ...That is a browser security rule. The single file version has no local imports left, so it is not affected.
Open the file and press Run connection test under the login button. It prints, in the page:
Build: Standalone Build v24 Opened from: a local file (file://) Shared code loaded: yes Email on the admin list: yes driver-pro-card-login: reachable rider-s-drivers-info: reachable Last sign in attempt: none yet on this page Network: online
That is what a healthy local copy looks like, taken from a real run against the live Firebase projects. If every line reads like that, the app is fine and the password is the problem: press Send password reset email, then sign in with the new one. If a line differs, it names the fault: an old build, a missing file, an email that is not on the admin list, a project that cannot be reached, or no internet.
Windows double click admin-package\start-admin.bat
Mac open Terminal in admin-package, run ./start-admin.sh
Any OS cd admin-package
python3 -m http.server 8000
open http://localhost:8000/admin.html
sk_...) in any file a browser downloads.