From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1696301544; bh=66aozbdrkUHuLRFRBeniWwZCPBcKRYeVellq72jnBeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=n7yrRTj+IlUeBotf7NBwJ/WCZ7pJas0Pd1UrSo+C3EPd9TbtGDWs+qL+wbAV4rLKx Mr5HWhhku6g/o2+/BtteKdqwfmht1YK7j/trKZuBsa48lndXGdr8utwbJZ01VB+7m8 5+LubcJ2ai7xwe6o2Mowbu2fADR8ZRECo497vFUTCJjEdR+4vr/w/+LaXS+h4kHnKX DFX+ykaEXzZz4j9Lp/TUVfUqrDtzpsNHh7MVfP5lFy/FJr+ZswB5cLfXxWKbRq+PRe 4zt71JF8gsAxnbQwUt3pk65nCnIsYDy1U3gkzhBy2VxX3SegJBPfnaOoLXxVjAEpYQ vgwS0LR4Puixw== Received: from localhost.localdomain (unknown [175.158.50.50]) by gnuweeb.org (Postfix) with ESMTPSA id 04F4C24B8C0; Tue, 3 Oct 2023 09:52:22 +0700 (WIB) From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , Irvan Malik Azantha , Memet Zx , GNU/Weeb Mailing List Subject: [PATCH v1 05/13] feat(lib): add newly created lib constants variables and functions Date: Tue, 3 Oct 2023 09:51:38 +0700 Message-Id: <20231003025146.1557-6-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20231003025146.1557-1-kiizuha@gnuweeb.org> References: <20231003025146.1557-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This commit includes imports and exports to `index.ts`, making it easier to access them using `"$lib"`. Signed-off-by: Muhammad Rizki --- src/lib/index.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/lib/index.ts diff --git a/src/lib/index.ts b/src/lib/index.ts new file mode 100644 index 0000000..e8a9d9b --- /dev/null +++ b/src/lib/index.ts @@ -0,0 +1,22 @@ +import { + API_URL, + STORAGE_URL, +} from "./constants"; + +import { + getRecentMessages, + getOrgMembers, + getFixedRandomColor, + cleanMessageText, + setupUserName +} from "./functions"; + +export { + API_URL, + STORAGE_URL, + getRecentMessages, + getOrgMembers, + getFixedRandomColor, + cleanMessageText, + setupUserName +}; -- Muhammad Rizki