Files
ambersplace.net/cohost-archive/static/client-preact-components-pages-moderation-home.bb885b9c05165652720e.js

2 lines
7.2 KiB
JavaScript

"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9908],{2735:function(e,t,r){r.d(t,{Qj:function(){return P},zx:function(){return w}});var l=r(65443),n=r.n(l),a=r(94159),o=r(6285);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},c.apply(this,arguments)}const i=o.z.enum(["pill","roundrect","authn"]),m=o.z.enum(["cherry","strawberry","mango","not-black","red","green","accent","secondary","authn-primary","authn-other"]),s=(o.z.object({buttonStyle:i,color:m,className:o.z.string().optional()}),n()("bg-notWhite","hover:text-notWhite")),u=n()("font-atkinson","font-bold","rounded-full","border-2"),d=n()("body-2","rounded-lg"),b=n()("flex","h-12","items-center","justify-center","rounded-lg","px-6","text-lg"),g=n()("border-cherry","hover:bg-cherry","text-cherry","active:bg-cherry-600","active:border-cherry-600","disabled:text-cherry-300","disabled:border-cherry-300","focus:outline-cherry","focus:ring-cherry",s),h=n()("border-strawberry","hover:bg-strawberry","text-strawberry","active:bg-strawberry-600","active:border-strawberry-600","disabled:text-strawberry-300","disabled:border-strawberry-300","focus:outline-strawberry","focus:ring-strawberry",s),f=n()("border-red","hover:bg-red","text-red","active:bg-red-600","active:border-red-600","disabled:text-red-300","disabled:border-red-300","focus:outline-red",s),E=n()("border-green","hover:bg-green","text-green","active:bg-green-600","active:border-green-600","disabled:text-green-300","disabled:border-green-300","focus:outline-green",s),y=n()("border-mango","hover:bg-mango","text-mango","bg-notBlack","hover:text-notBlack"),p=n()("border-notBlack","hover:bg-notBlack","text-notBlack","focus:outline-notBlack","focus:ring-notBlack",s),x=n()("border-accent","text-accent","bg-foreground","hover:bg-accent","hover:text-text"),v=n()("bg-secondary","text-notWhite","dark:text-notBlack","hover:bg-secondary-600"),N=n()("bg-foreground","text-text","hover:bg-foreground-600","active:bg-foreground-700","disabled:bg-foreground-200"),S=n()("border-2","border-foreground","text-foreground","hover:bg-longan-200"),k=e=>n()("leading-none","align-middle","py-2","px-4","no-select",e.className,{[u]:"pill"===e.buttonStyle,[d]:"roundrect"===e.buttonStyle,[b]:"authn"===e.buttonStyle,[g]:"cherry"===e.color,[h]:"strawberry"===e.color,[y]:"mango"===e.color,[p]:"not-black"===e.color,[f]:"red"===e.color,[x]:"accent"===e.color,[E]:"green"===e.color,[v]:"secondary"===e.color,[N]:"authn-primary"===e.color,[S]:"authn-other"===e.color}),w=a.forwardRef((({buttonStyle:e,color:t,className:r,...l},n)=>{const o=k({buttonStyle:e,color:t,className:r,...l});return a.createElement("button",c({},l,{className:o,ref:n}),l.children)}));w.displayName="Button";const P=a.forwardRef((({buttonStyle:e,color:t,...r},l)=>{const n=k({buttonStyle:e,color:t,...r});return a.createElement("a",c({},r,{className:n,ref:l}),r.children)}));P.displayName="LinkButton"},21341:function(e,t,r){r.r(t);var l=r(8227),n=r(12093),a=r(94159),o=r(990),c=r(90275),i=r(2735);t.default=()=>{const{modMode:e}=(0,l.Pc)();return a.createElement(a.Fragment,null,a.createElement(c.ql,{title:"moderation"}),a.createElement("div",null,e?null:a.createElement("div",{className:"mb-2 flex flex-row items-start gap-4\n rounded-lg border-2 border-red-700 bg-red-200 p-4\n text-notBlack prose-p:my-2"},a.createElement("p",{className:"flex-shrink-0"},a.createElement(o.Z,{className:"inline h-6 w-6 text-red-700"})),a.createElement("div",null,a.createElement("p",null,"NOTICE! You are logged in as an account with moderator permissions but are not currently active in Mod Mode! Several of the pages listed here WILL NOT WORK outside of Mod Mode!"),a.createElement("p",null,"Please visit the"," ",a.createElement("a",{href:n.ZP.public.userSettings().toString()},"user settings page")," ","to fix this!"))),a.createElement("h1",null,"moderation phone book"),a.createElement("h2",null,"Invites (mod mode not required)"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.invites.manage().toString()},"Invite management"))),a.createElement("h2",null,"Maintenance"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.cacheMaintenance().toString()},"Cache maintenance")),a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.createOAuthClient().toString()},"Create a new OAuth client record"))),a.createElement("h2",null,"Activation"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.bulkActivate().toString()},"Bulk activate users"))),a.createElement("h2",null,"Artist Alley"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.artistAlleyPendingQueue().toString()},"Pending queue"))),a.createElement("h2",{className:"mb-0"},"Manage users"),a.createElement("div",{className:"flex flex-col"},a.createElement("form",{method:"GET",action:n.ZP.public.moderation.manageUser({}).toString(),className:"flex flex-col"},a.createElement("h4",null,"by email"),a.createElement("div",{className:"flex flex-row gap-3"},a.createElement("input",{type:"email",name:"email",placeholder:"email",required:!0}),a.createElement(i.zx,{type:"submit",buttonStyle:"pill",color:"cherry"},"submit"))),a.createElement("form",{method:"GET",action:n.ZP.public.moderation.manageUser({}).toString(),className:"flex flex-col"},a.createElement("h4",null,"by user ID"),a.createElement("div",{className:"flex flex-row gap-3"},a.createElement("input",{type:"number",name:"userId",placeholder:"user ID",required:!0,min:1,step:1}),a.createElement(i.zx,{type:"submit",buttonStyle:"pill",color:"cherry"},"submit")))),a.createElement("h2",{className:"mb-0"},"Manage pages"),a.createElement("div",{className:"flex flex-col"},a.createElement("form",{method:"GET",action:n.ZP.public.moderation.manageProject({}).toString(),className:"flex flex-col"},a.createElement("h4",null,"by handle"),a.createElement("div",{className:"flex flex-row gap-3"},a.createElement("input",{type:"text",name:"handle",placeholder:"handle",required:!0}),a.createElement(i.zx,{type:"submit",buttonStyle:"pill",color:"cherry"},"submit")))),a.createElement("h2",{className:"mb-0"},"Manage ask"),a.createElement("div",{className:"flex flex-col"},a.createElement("form",{method:"GET",action:n.ZP.public.moderation.manageAsk({}).toString(),className:"flex flex-col"},a.createElement("h4",null,"by handle"),a.createElement("div",{className:"flex flex-row gap-3"},a.createElement("input",{type:"text",name:"askId",placeholder:"ask ID",required:!0}),a.createElement(i.zx,{type:"submit",buttonStyle:"pill",color:"cherry"},"submit")))),a.createElement("h2",{className:"mb-0"},"Tag ontology"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.tagOntology.pendingRequests().toString()},"Pending requests")),a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.tagOntology.manageTags().toString()},"Manage tags")))))}}}]);
//# sourceMappingURL=client-preact-components-pages-moderation-home.bb885b9c05165652720e.js.map