mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-05 18:59:01 +01:00
- Add Next.js admin routes (/admin, /admin/login, /admin/pages, /admin/pages/new, /admin/pages/[id]) - Create admin layout with navigation and authentication - Build login page with email/password form - Implement pages list with search and create functionality - Add WYSIWYG editor for content creation/editing - Create API routes for admin authentication and content management - Add middleware for route protection - Include sample data population script - Add comprehensive admin interface documentation for non-technical users - Create test page for validating admin functionality - Update environment configuration for JWT secret Admin interface is now super easy and intuitive for non-technical team members to: - Login with email/password - View all pages with search - Create new pages - Edit existing pages with rich text editor - Save as draft or publish immediately - Preview content before publishing All code follows best practices with proper error handling, security, and accessibility.
23 lines
993 B
JavaScript
23 lines
993 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = isAbaRouting;
|
|
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
// http://www.brainjar.com/js/validation/
|
|
// https://www.aba.com/news-research/research-analysis/routing-number-policy-procedures
|
|
// series reserved for future use are excluded
|
|
var isRoutingReg = /^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;
|
|
function isAbaRouting(str) {
|
|
(0, _assertString.default)(str);
|
|
if (!isRoutingReg.test(str)) return false;
|
|
var checkSumVal = 0;
|
|
for (var i = 0; i < str.length; i++) {
|
|
if (i % 3 === 0) checkSumVal += str[i] * 3;else if (i % 3 === 1) checkSumVal += str[i] * 7;else checkSumVal += str[i] * 1;
|
|
}
|
|
return checkSumVal % 10 === 0;
|
|
}
|
|
module.exports = exports.default;
|
|
module.exports.default = exports.default; |