Features: - Full RBAC with 3 roles (superadmin/manager/contributor) - Ownership tracking on posts, tasks, campaigns, projects - Task system: assign to anyone, filter combobox, visibility scoping - Team members merged into users table (single source of truth) - Post thumbnails on kanban cards from attachments - Publication link validation before publishing - Interactive onboarding tutorial with Settings restart - Full Arabic/English i18n with RTL layout support - Language toggle in sidebar, IBM Plex Sans Arabic font - Brand-based visibility filtering for non-superadmins - Manager can only create contributors - Profile completion flow for new users - Cookie-based sessions (express-session + SQLite)
25 lines
698 B
JavaScript
25 lines
698 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.shuffleArray = exports.SocksClientError = void 0;
|
|
/**
|
|
* Error wrapper for SocksClient
|
|
*/
|
|
class SocksClientError extends Error {
|
|
constructor(message, options) {
|
|
super(message);
|
|
this.options = options;
|
|
}
|
|
}
|
|
exports.SocksClientError = SocksClientError;
|
|
/**
|
|
* Shuffles a given array.
|
|
* @param array The array to shuffle.
|
|
*/
|
|
function shuffleArray(array) {
|
|
for (let i = array.length - 1; i > 0; i--) {
|
|
const j = Math.floor(Math.random() * (i + 1));
|
|
[array[i], array[j]] = [array[j], array[i]];
|
|
}
|
|
}
|
|
exports.shuffleArray = shuffleArray;
|
|
//# sourceMappingURL=util.js.map
|