Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User #488

Merged
merged 2 commits into from
Oct 28, 2024
Merged

User #488

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import adminModule from "@app/modules/admin/mod.ts";
import github from "@app/middleware/github/mod.ts";
import socketModule from "../socket/mod.ts";
import storeModule from "@app/modules/store/mod.ts";
import roomModules from "@app/modules/room/mod.ts";

const s = new Server();

Expand All @@ -33,5 +34,6 @@ s.group(docs);
s.group(authModule);
s.group(adminModule);
s.group(socketModule);
s.group(roomModules);

await s.serve();
372 changes: 0 additions & 372 deletions modules/index/index.launchpad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,375 +22,3 @@ export default function Launchpad(
</div>
);
}

// function StackSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-stack-front"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M12 4l-8 4l8 4l8 -4l-8 -4" fill="currentColor" />
// <path d="M8 14l-4 2l8 4l8 -4l-4 -2" />
// <path d="M8 10l-4 2l8 4l8 -4l-4 -2" />
// </svg>
// );
// }

// function LogisticSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-tir"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M5 17m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
// <path d="M17 17m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
// <path d="M7 18h8m4 0h2v-6a5 7 0 0 0 -5 -7h-1l1.5 7h4.5" />
// <path d="M12 18v-13h3" />
// <path d="M3 17l0 -5l9 0" />
// </svg>
// );
// }

// function NoteSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-notes"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M5 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z" />
// <path d="M9 7l6 0" />
// <path d="M9 11l6 0" />
// <path d="M9 15l4 0" />
// </svg>
// );
// }

// function FormSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-forms"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M12 3a3 3 0 0 0 -3 3v12a3 3 0 0 0 3 3" />
// <path d="M6 3a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3" />
// <path d="M13 7h7a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-7" />
// <path d="M5 7h-1a1 1 0 0 0 -1 1v8a1 1 0 0 0 1 1h1" />
// <path d="M17 12h.01" />
// <path d="M13 12h.01" />
// </svg>
// );
// }

// function HtmlSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-html"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M13 16v-8l2 5l2 -5v8" />
// <path d="M1 16v-8" />
// <path d="M5 8v8" />
// <path d="M1 12h4" />
// <path d="M7 8h4" />
// <path d="M9 8v8" />
// <path d="M20 8v8h3" />
// </svg>
// );
// }

// function SurveySvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-checkbox"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M9 11l3 3l8 -8" />
// <path d="M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9" />
// </svg>
// );
// }

// function BlogSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-network"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M6 9a6 6 0 1 0 12 0a6 6 0 0 0 -12 0" />
// <path d="M12 3c1.333 .333 2 2.333 2 6s-.667 5.667 -2 6" />
// <path d="M12 3c-1.333 .333 -2 2.333 -2 6s.667 5.667 2 6" />
// <path d="M6 9h12" />
// <path d="M3 20h7" />
// <path d="M14 20h7" />
// <path d="M10 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
// <path d="M12 15v3" />
// </svg>
// );
// }

// function SocialSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-social"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
// <path d="M5 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
// <path d="M19 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
// <path d="M12 14m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" />
// <path d="M12 7l0 4" />
// <path d="M6.7 17.8l2.8 -2" />
// <path d="M17.3 17.8l-2.8 -2" />
// </svg>
// );
// }

// function StoreSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-building-store"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M3 21l18 0" />
// <path d="M3 7v1a3 3 0 0 0 6 0v-1m0 1a3 3 0 0 0 6 0v-1m0 1a3 3 0 0 0 6 0v-1h-18l2 -4h14l2 4" />
// <path d="M5 21l0 -10.15" />
// <path d="M19 21l0 -10.15" />
// <path d="M9 21v-4a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v4" />
// </svg>
// );
// }

// function LoyalSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-reload"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747" />
// <path d="M20 4v5h-5" />
// </svg>
// );
// }

// function AttendanceSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-report"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M8 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h5.697" />
// <path d="M18 14v4h4" />
// <path d="M18 11v-4a2 2 0 0 0 -2 -2h-2" />
// <path d="M8 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" />
// <path d="M18 18m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" />
// <path d="M8 11h4" />
// <path d="M8 15h3" />
// </svg>
// );
// }

// function PurchaseSvg() {
// return (
// <svg
// xmlns="http://www.w3.org/2000/svg"
// width="36"
// height="36"
// viewBox="0 0 24 24"
// fill="none"
// stroke="currentColor"
// stroke-width="2"
// stroke-linecap="round"
// stroke-linejoin="round"
// class="icon icon-tabler icons-tabler-outline icon-tabler-package"
// >
// <path stroke="none" d="M0 0h24v24H0z" fill="none" />
// <path d="M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5" />
// <path d="M12 12l8 -4.5" />
// <path d="M12 12l0 9" />
// <path d="M12 12l-8 -4.5" />
// <path d="M16 5.25l-8 4.5" />
// </svg>
// );
// }

// import Search from "@app/components/search.tsx";
// import ProjectBox from "@app/components/project-box.tsx";
// import AdminSvg from "@app/components/icons/admin-svg.tsx";
// import AdsSvg from "@app/components/icons/ads-svg.tsx";
// import SalesSvg from "@app/components/icons/sales-svg.tsx";
// import WareHouseSvg from "@app/components/icons/warehouse-svg.tsx";

// function Board() {
// return (
// <div
// class={`flex flex-col p-6 bg-gray-900 rounded-2xl gap-y-6`}
// >
// <Search placeholder="Search module" />
// <div class="grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-6">
// <ProjectBox active={true} url="/mod/admin">
// <AdminSvg />
// <p>Admin</p>
// </ProjectBox>
// <ProjectBox>
// <AdsSvg />
// <p>Advertising</p>
// </ProjectBox>
// <ProjectBox>
// <AttendanceSvg />
// <p>Attendance</p>
// </ProjectBox>
// <ProjectBox>
// <BlogSvg />
// <p>Blog</p>
// </ProjectBox>
// <ProjectBox>
// <HtmlSvg />
// <p>Landing Page</p>
// </ProjectBox>
// <ProjectBox>
// <LogisticSvg />
// <p>Logistic</p>
// </ProjectBox>
// <ProjectBox>
// <LoyalSvg />
// <p>Loyalty</p>
// </ProjectBox>
// <ProjectBox>
// <NoteSvg />
// <p>Medical Record</p>
// </ProjectBox>
// <ProjectBox>
// <PurchaseSvg />
// <p>Purchasing</p>
// </ProjectBox>
// <ProjectBox>
// <FormSvg />
// <p>Registration</p>
// </ProjectBox>
// <ProjectBox>
// <SalesSvg />
// <p>Sales</p>
// </ProjectBox>
// <ProjectBox>
// <SocialSvg />
// <p>Social Media</p>
// </ProjectBox>
// <ProjectBox>
// <StoreSvg />
// <p>Store</p>
// </ProjectBox>
// <ProjectBox>
// <SurveySvg />
// <p>Survey</p>
// </ProjectBox>
// <ProjectBox>
// <WareHouseSvg />
// <p>Warehouse</p>
// </ProjectBox>
// <ProjectBox>
// <StackSvg />
// <p>Visitor queue</p>
// </ProjectBox>
// </div>
// </div>
// );
// }
2 changes: 1 addition & 1 deletion modules/index/index.main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function Main(
}, [d, initialData]);

useEffect(() => {
return setLoading(true);
setLoading(true);
}, [room]);

effect(() => {
Expand Down
Loading