repo
stringlengths
8
123
branch
stringclasses
178 values
readme
stringlengths
1
441k
description
stringlengths
1
350
topics
stringlengths
10
237
createdAt
stringlengths
20
20
lastCommitDate
stringlengths
20
20
lastReleaseDate
stringlengths
20
20
contributors
int64
0
10k
pulls
int64
0
3.84k
commits
int64
1
58.7k
issues
int64
0
826
forks
int64
0
13.1k
stars
int64
2
49.2k
diskUsage
float64
license
stringclasses
24 values
language
stringclasses
80 values
minnukota381/CUTM-Result-Portal
main
# CUTM Result Portal The CUTM Result Portal is a web application designed to help students and administrators view and manage academic results efficiently. This repository contains the codebase for the portal, including frontend templates, backend logic, and database configurations. [**Live Demo**](https://cutm-result-portal.onrender.com/) ## Features - **Student Result Display**: Students can view their academic results by entering their registration number and selecting the semester. - **Admin Panel**: Administrators can log in to access the admin panel, where they can manage student records, update results, and perform other administrative tasks. - **Responsive Design**: The portal is built using Bootstrap CSS, ensuring responsiveness across various devices and screen sizes. - **Dynamic Content**: Results are dynamically loaded and displayed based on user input, providing a seamless user experience. - **Security**: Authentication and authorization mechanisms are implemented to ensure that only authorized users can access sensitive functionalities. ## Technologies Used ### Backend - **Flask**: Python web framework used for building the backend of the application. - **SQLite**: SQL database engine used for storing and managing relational data. - **MongoDB**: NoSQL document-oriented database used for storing user input data. - **dotenv**: Python library for parsing environment variables from a .env file. - **PyMongo**: Python driver for working with MongoDB. - **Datetime**: Python module for working with dates and times. - **Jinja**: Templating engine for Python used for generating dynamic HTML content. ### Frontend - **HTML/CSS**: Used for frontend structure and styling. - **Bootstrap 5**: Frontend framework for designing responsive and mobile-first web pages. - **JavaScript**: Programming language for adding interactivity to web pages. ## Supported Batches ## BBA Program - BBA 2023 Batch - BBA 2022 Batch - BBA 2021 Batch ## BCA Program - BCA 2023 Batch - BCA 2022 Batch - BCA 2021 Batch ## BFSC Program - BFSC 2023 Batch - BFSC 2022 Batch - BFSC 2021 Batch ## BSC(AG) Program - BSC(AG) 2023 Batch - BSC(AG) 2022 Batch - BSC(AG) 2021 Batch ## BTECH Program - BTECH 2023 Batch - BTECH 2022 Batch - BTECH 2021 Batch ## BTECH(AG) Program - BTECH(AG) 2023 Batch - BTECH(AG) 2021 Batch ## BTECH(DT) Program - BTECH(DT) 2023 Batch - BTECH(DT) 2022 Batch - BTECH(DT) 2021 Batch ## BTECH(PHYTO) Program - BTECH(PHYTO) 2023 Batch - BTECH(PHYTO) 2022 Batch - BTECH(PHYTO) 2021 Batch ## Diploma Program - Diploma 2023 Batch - Diploma 2022 Batch - Diploma 2021 Batch ## MSC(AG) Program - MSC(AG) 2023 Batch - MSC(AG) 2022 Batch ## Installation 1. Clone the repository: `git clone https://github.com/minnukota381/CUTM-Result-Portal.git` 2. Install dependencies: `pip install -r requirements.txt` 3. Run the application: `python app.py` 4. Access the portal in your web browser at `http://localhost:5000` ## Usage - To access the student result portal, visit the homepage and enter your registration number and select the semester. - To log in as an admin, navigate to the admin login page and enter your credentials. - Once logged in, you can access the admin panel to manage student records, update results, etc. ## License This project is licensed under the [MIT License](LICENSE). ## Authors - [Minnu Madan Kota](https://github.com/minnukota381)
The CUTM Result Portal is a web application designed to help students and administrators view and manage academic results efficiently. This repository contains the codebase for the portal, including frontend templates, backend logic, and database configurations.
flask,mongodb,javascript,css,html,jinja2,sqlite
2024-03-06T16:31:39Z
2024-05-20T11:35:10Z
null
1
0
27
0
0
4
null
MIT
Python
BonaFideBOSS/AfterSchool
main
# AfterSchool - Web App with Vue.js Module: Web-Based Mobile App Development (CST3145) - Coursework 1 - GitHub Repository: https://github.com/BonaFideBOSS/AfterSchool/ - GitHub Page: https://bonafideboss.github.io/AfterSchool/ (Live link: Use this link to run the app directly) P.S. This is my first Vue.js application
My first Vue.js application
cst3145,javascript,vuejs,bootstrap,material-ui
2024-02-15T14:24:44Z
2024-03-17T15:59:35Z
null
1
0
14
0
0
4
null
null
HTML
javier04s/animated-login-page
main
## 📑 Animated Login Page (Green) ## 📷 Screenshot <img src = https://github.com/javier04s/animated-login-page/blob/main/image/result.png> ### 👷🏽 Project made with ![HTML5](https://img.shields.io/badge/HTML-E34F26?style=flat-square&logo=HTML5&logoColor=white) ![CSS3](https://img.shields.io/badge/CSS-1572B6?style=flat-square&logo=CSS3&logoColor=white) ![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=flat-square&logo=JavaScript&logoColor=white)
Animated Login Page (Green)
css,good-first-issue,html,javascript,login,login-page,page,animated,contributions-welcome
2024-03-01T02:08:57Z
2024-03-01T02:30:23Z
null
1
0
8
0
0
4
null
MIT
CSS
Loong1996/LikeGirlSite
master
基于[Gitee kiCode111/like-girl5.0.0](https://gitee.com/kiCode111/like-girl5.0.0)项目,继续开发 #### 更新记录 - 修复管理后台无法登陆问题 #### 食用方法 1.打开根目录下的`admin`文件夹 2.接着找到`Config_DB.php`文件打开编辑你的数据库相关信息 3.请认真填写安全码 尽量设置的`复杂难以猜测` 修改密码等敏感信息需输入安全码 4.最后到数据库导入sql文件(`like_girl.sql`) 5.默认账号密码:`admin`/`love`
情侣网站、情侣网页、恋爱记录网站
php,css,html,javascript
2024-03-13T14:11:09Z
2024-03-13T17:02:50Z
null
1
0
26
0
2
4
null
MulanPSL-2.0
JavaScript
Ram2020-art/PersonalPage
main
# PersonalPage simple personal page / personal website / portfolio
simple personal page / personal website / portfolio
css,html,javascript,page,personal,portfolio,project,resume,static,template
2024-02-17T17:16:37Z
2024-02-17T17:26:33Z
null
1
0
4
0
0
4
null
MIT
CSS
KageRyo/WaterMirror
main
# WaterMirror 水之鏡 💧Water Mirror: AI-powered Water Quality Analysis ### 「水之鏡,山之屏」 水可以映照出山的形貌,透過 WaterMirror 可以輕鬆反映出各項水質資訊。 ## 自行編譯 1. 首先將 WaterMirror 及 [MPR_Model](https://github.com/RotatingPotato/MPR_Model) 儲存庫分別 Clone 至您的環境。 ```bash git clone https://github.com/RotatingPotato/WaterMirror.git git clone https://github.com/RotatingPotato/MPR_Model.git ``` 2. 於 [WaterMirror/src/config.json](WaterMirror/src/config.json) 中將 API 與 port 更換成您 [MPR_Model](https://github.com/RotatingPotato/MPR_Model) 的伺服器位址。 範例如下: ```json { "api_url": "https://192.168.0.1", "port": "8000" } ``` > 請將 api_url 與 port 依據您的真實情況更改。 4. 將 [MPR_Model](https://github.com/RotatingPotato/MPR_Model) 伺服器建立於您的裝置或雲端平臺。 5. 安裝 WaterMirror 所需的函示庫。 ```bash cd WaterMirror npm install ``` 5. 透過以下指令透過 Expo 開啟 WaterMirror,並進入「輸入資料」頁面,應於 5 秒內顯示「連線成功」提示訊息。 ```bash npx expo start ``` > 若未出現「連線成功」訊息,可能是您的 [MPR_Model](https://github.com/RotatingPotato/MPR_Model) 未成功開啟或是權限不足。 ## 支援類型 目前本程式支援以下水質資料: - 溶氧量 DO - 生物需氧量 BOD - 浮懸固體 SS - 氨氮 NH3-N - 導電度 EC ### 請注意 - 此 README.md 文件皆為預設您將 WaterMirror 搭配 [MPR_Model](https://github.com/RotatingPotato/MPR_Model) 使用。 - 當然,您也可以在不違反 [Apache License 2.0](LICENSE) 的前提下自由修改。 - WaterMirror 將會在您初次使用「輸入資料」功能時向您請求權限,若拒絕權限將無法使用「上傳水質資料檔案」之功能。 - 「上傳水質資料檔案」功能目前僅限於CSV格式,上傳時請遵循以下格式: | DO | BOD | NH3N | EC | SS | |-------- |--------- |---------- |-------- |-------- | | DO數值 | BOD數值 | NH3N數值 | EC數值 | SS數值 | | ... | ## 語言支援 WaterMirror 支援以下語言: - 繁體中文(正體中文) - 歡迎貢獻 :D ## 貢獻 歡迎貢獻! 如果您發現任何錯誤或有改進建議,歡迎提出 Issues 或 Pull Requests。 ## LICENSE 本程式採用 Apache License 2.0 授權 - 有關詳細信息,請參閱 [LICENSE](LICENSE) 文件。 有任何疑問請洽 kageryo@coderyo.com + 張健勳 Chien-Hsun, Chang [@KageRyo](https://github.com/KageRyo) + 吳國維 Kuo-Wei, Wu [@RRAaru](https://github.com/RRAaru) ${{\color{orange}{\textsf{本作品為 張健勳 與 吳國維 用於「國立臺中科技大學智慧生產工程系」畢業專題之作品,其著作權由兩人共同擁有。}}}}\$ ${{\color{yellow}{\textsf{特別感謝「國立臺中科技大學智慧生產工程系」蔡文宗 教授指導。}}}}\$
💧Water Mirror: AI-powered Water Quality Analysis by MPR_Model
ai,front-end,javascript,react-native,waterquality
2024-02-22T13:56:36Z
2024-05-23T13:20:11Z
2024-05-18T12:33:53Z
1
0
108
3
0
4
null
Apache-2.0
JavaScript
SerhatPolat/crudizer-core-client
master
# crudizer-core crudizer-core is a fullstack CRUD web app kickstarter which one is includes common essentials: - E2E data listing (w/ pagination) (Mongo database => Node.js backend => Nuxt 3 & Axios API requests => UI) - Ready to use E2E base64 image dataflow - Create/Update/Delete transactions for items - Item detail page & related logics - Ready to use UI for essentials (w/ responsive styling and config based color usage) <br> <hr> <br> ## Data Structure & App Scope Structure builded upon an example data with common fields of many applications datas: ```js { id: String, name: String, imgSource: String, // base64 price: { amount: Number, currency: String, }, info: String, } ``` but that doesn't mean you must build your app with this data, you can customize the data & related UI parts as you wish. You can also add new components/pages new api endpoint connections (of course after adding it to backend) <br> <hr> <br> ## API Environment Declaration You need to update your api base url from environment.js to make your app working with your backend. Take care of this especially when you deploying the app. NOTE: Default is adjusted to **localhost:3001** because default port is **3001** on backend of crudizer-core. <br> <hr> <br> _This is **frontend** repo of crudizer-core, you can reach to **backend** from here:_ [crudizer-core-server](https://github.com/SerhatPolat/crudizer-core-server) <br> <hr> # Nuxt 3 Minimal Starter Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. ## Setup Make sure to install the dependencies: ```bash # npm npm install # pnpm pnpm install # yarn yarn install # bun bun install ``` ## Development Server Start the development server on `http://localhost:3000`: ```bash # npm npm run dev # pnpm pnpm run dev # yarn yarn dev # bun bun run dev ``` ## Production Build the application for production: ```bash # npm npm run build # pnpm pnpm run build # yarn yarn build # bun bun run build ``` Locally preview production build: ```bash # npm npm run preview # pnpm pnpm run preview # yarn yarn preview # bun bun run preview ``` Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
Frontend of crudizer-core (Nuxt 3, Tailwind, Axios & more)
axios,javascript,nuxtjs,tailwindcss,vuejs,frontend,nuxt3
2024-02-03T20:48:26Z
2024-02-08T09:47:56Z
null
1
0
10
0
0
4
null
MIT
Vue
autruonggiang/F8-Shopee-Web-Building
main
# Shopping Hopper - FE Welcome to our [Shopping Hopper](https://autruonggiang.github.io/F8-Shopee-Web-Building/) store. The website is designed based on the original [Shopee](https://shopee.vn/) page. The Shopping Hopper has more advances than The Band because it is designed in more detail and designed more according to my own wishes. Visit shop: https://autruonggiang.github.io/F8-Shopee-Web-Building ## Installation ```bash # Clone this repository $ git clone https://github.com/autruonggiang/F8-Shopee-Web-Building.git ``` Then on Visual Studio Code, open with Live Server (Go Live). The Live Server will run the path by default as `http://127.0.0.1:5500/index.html` to access the website. ## Technology <a href="https://skillicons.dev"> <img src="https://skillicons.dev/icons?i=html,css,js,git,github,vscode&perline=6" /> </a> ## References - Font Awesome: https://fontawesome.com - F8 Course: https://fullstack.edu.vn/courses/html-css
Visit shop: https://autruonggiang.github.io/F8-Shopee-Web-Building
f8,html-css-javascript,shopee,css,css3,e-commerce-project,e-commerce-website,html,html5,javascript
2024-02-02T11:43:56Z
2024-03-23T07:07:28Z
null
1
0
121
0
0
4
null
MIT
CSS
vildan-valeev/golang-htmx-grpc
main
# Simple Project for testing [HTMX](https://htmx.org/docs/) with [gRPC-Web](https://github.com/grpc/grpc-web/tree/master) --- Sending HTML code parts from the backend as a string and inserting them into the DOM using htmx. 1. https://htmx.org/docs/#extensions 2. https://github.com/grpc/grpc-web/tree/master/net/grpc/gateway/examples/helloworld#compile-the-client-javascript-code 3. --- ### Start 1. Generate js from proto file (optional, if doesn't exist `api_pb.js`, `api_pb_web.js`) ```sh make js-proto ``` 2. Generate go package from proto file (optional, if doesn't exist `api.pb.go`, `api_grpc.pb.go`) ```sh make go-proto ``` 3. Compile the client side JavaScript (optional, if doesn't exist `main.js`) ```sh browserify grpc_ext.js -o main.js ``` 4. Run Proxy Server ```sh docker compose up --build --remove-orphans ``` 5. Start Backend ```sh go mod tidy go build -o main main.go ./main ``` 6. Open `index.html` in Browser
Example for test HTMX with gRPC-web
envoy,golang,grpc-web,htmx,javascript,protobuf
2024-02-13T21:16:50Z
2024-02-23T22:21:47Z
null
1
0
7
0
1
4
null
MIT
JavaScript
Ela-Fhd/todoList_with_redux_vanillajs
main
<h1 align="center">todoList_with_redux_vanillajs</h1> ![demo](https://github.com/Ela-Fhd/todoList_with_redux_vanillajs/blob/main/assets/demo/demo-1.png) ![demo](https://github.com/Ela-Fhd/todoList_with_redux_vanillajs/blob/main/assets/demo/demo-2.png) ![demo](https://github.com/Ela-Fhd/todoList_with_redux_vanillajs/blob/main/assets/demo/demo-3.png) - &#128204;<a href="https://todolist-with-redux-and-js.netlify.app/" >Demo</a> - 🙋‍♀️Developed by Elahe Fahmideh - 📆Created : February 2024 - To run the program, first run 'npm install' command in the terminal to install all packages , then run 'npm run taiwind to compile tailwind classes'. - &#x2714;Technologies : html , tailwind , javascript , redux - &#128231;Contact with me : <a href="https://www.linkedin.com/in/elahe-fahmideh/">LINKEDIN</a>
this is a very simple project for practice redux with vanilla js ! i used redux in js for create crud operation
crud-operation,html,javascript,redux,tailwind
2024-02-04T15:26:31Z
2024-02-07T14:34:32Z
null
1
1
7
0
2
4
null
null
JavaScript
BOOST-STAR-Experts/Internship-Daily-Task-Tracker
main
# Internship-Daily-Task-Tracker Repository Welcome to the Internship-Daily-Task-Tracker Repository! 🚀 ## Note: You have collaborator access, so no need to create a pull request. Directly push your changes to the main branch. Happy coding! 🚀 ## How to Use: 1. **Clone the Repository:** - Open your terminal. - Run the following command to clone the repository: ```bash git clone https://github.com/BOOST-STAR-Experts/Internship-Daily-Task-Tracker.git ``` 2. **Create Your Folder:** - Navigate to the `Interns` directory. ```bash cd Internship-Daily-Task-Tracker/Interns ``` - Create a new folder using your name as the folder name. ```bash mkdir YourName ``` - Now go to your name folder with the below code. ```bash cd YourName ``` 3. **Daily Task Update:** - Inside your folder, create a new HTML/CSS or JS file for each day's tasks. - For example, create `Day1.html`, `Day2.css`, etc. - Use clear filenames to represent the content. 5. **Commit Changes:** - Save your changes. - Run the following commands to commit changes: ```bash git add . git commit -m "Add tasks for Day 1" ``` 6. **Push Code:** - Push your changes to the repository: ```bash git push origin main ``` Now you've successfully updated your daily tasks! Repeat these steps for each day. ## Our Awesone Contributors: <a href = "https://github.com/BOOST-STAR-Experts/Internship-Daily-Task-Tracker/graphs/contributors"> <img src = "https://contrib.rocks/image?repo=BOOST-STAR-Experts/Internship-Daily-Task-Tracker"/> </a>
Efficiently track daily intern tasks and progress in one place! InternTaskLog is a collaborative repository for interns to update their daily work, promoting transparency, communication, and structured project tracking. Enhance intern engagement and project visibility effortlessly! 🚀
contributions-welcome,css,github,good-first-issue,html5,internship-project,internship-task,javascript,open-source,task-tracker
2024-02-28T12:45:24Z
2024-04-22T12:18:44Z
null
17
1
105
0
3
4
null
null
HTML
snakysnake/invoice-js
main
# Invoice.js Generate Invoices as PDF using Javascript. Super easy code, open source. It uses pdfkit to generate the invoice, and md5 hashing to combine similar products on the invoice itself. I wanted to publish this as I was not happy with other invoicing tools on github for javascript. It is open source. If you contribute to the code, please reach out and give me the improvements, I will incorporate all improvements. <center> <img src="./docs/example-invoice.png" alt="Screenshot of example invoice PDF" width="420"> </center> ## Installation & Dependencies It should be fairly easy to install: 1) Install 2 dependencies ``` npm i md5 npm i pdfkit ``` 2) Copy code to your codebase 3) Create instance of Invoice object as follows ``` // example.js import Invoice from "Invoice.js"; // of course, provide the correct path const invoice = new Invoice("InvoiceId1", new Date(), new Date(), "vatId", "en"); invoice.setSeller("Main St. 1", "1010", "Vienna", "Austria"); invoice.setBuyer("Main St. 2", "1010", "Vienna", "Austria"); invoice.setCurrency("usd"); invoice.setPaymentInfo("DE12 1234 1234 1234 1234", "My Name", "BICAATWWXXX", "Bank Name"); invoice.addProduct("My product", 100, 0, 100); const pdf = invoice.generatePDF(); ``` 4) Display invoice somehow It's base64 encoded. Either you can change the encoding on the generatePDF() method, or you display it somehow, according to your needs. If you want to display it in html, maybe this can help you: ``` // example.html (invalid code, whats important is the content of src attribute) <iframe src="`data:application/pdf;base64,${pdf}`" title="Invoice PDF generated by Invoice JS" /> ``` ## Nice to know One cool feature may be the hashing of products to recognize patterns and make the list more concise. Another cool feature are the two big json files for currencies and translations (not so big at the moment, please feel free to add your language) ## More information I'm using this on the backend (node) but appearently it should work on the browser aswell, according to the pdfkit documentation: Link to pdfkit: https://pdfkit.org/docs/getting_started.html ## Special thanks Thanks to pdfkit, @ksafranski for the currencies and @PSPDFKit-labs for some of the code, this was my starting point.
Invoice.js: Generate Invoices as PDF using Javascript. Super easy code - open source.
browser,invoice,invoice-generator,invoice-pdf,javascript,nodejs,pdf,pdfkit
2024-02-12T21:29:40Z
2024-04-25T16:11:39Z
null
1
0
13
0
2
4
null
GPL-3.0
JavaScript
FelixAshong/Birthday-Card
main
# Birthday Card 🎂 A responsive birthday card created using Jquery and CSS. ## Description This project is a simple birthday card designed to be responsive and customizable. It features animations, emojis, and a cake illustration to make the birthday celebration special. ## Features - Responsive design - Animations using CSS and jQuery - Emojis for added expression - Customizable message ## How to Use 1. Clone this repository to your local machine. 2. Open the `index.html` file in your web browser. 3. Customize the message inside the card by editing the HTML content. 4. Click on the "Open" button to view the inside of the card. 5. Enjoy the birthday celebration! 🎉🎈🎁 ## Credits - Original design and development by [PhleoDelly](https://github.com/FelixAshong)🧑‍💻
simple birthday card designed to be responsive and customizable. It features animations, emojis, and a cake illustration to make the birthday celebration special.
birthday,css,javascript
2024-03-11T02:33:15Z
2024-03-11T02:54:30Z
null
1
0
8
0
0
4
null
MIT
HTML
Zunzz/EngModMobileModMenu
main
# EngModMobileModMenu A simple menu mod made with FRIDA. ## Usage Termux: 1. Clone the repository: ```bash git clone https://github.com/Zunzz/EngModMobileModMenu.git ``` 2. Open the game with frida-gadget, write it in termux ```bash frida -H localhost gadget -l [script path /EngModMobileModMenu/fridamenu.js] ``` or update the frida configuration file within the game, read this site to learn how to create the configuration file: https://frida.re/docs/gadget/
A simple menu mod made with FRIDA.
android,exemple,frida,hook,hooking,javascript,modmenu,template
2024-02-05T23:41:22Z
2024-02-25T19:31:19Z
null
2
2
22
0
2
4
null
MIT
JavaScript
pastaChaeng/lesserafim-mobile-app
master
# Lesserafim Mobile App ![image](https://github.com/pastaChaeng/lesserafim-mobile-app/assets/123816211/a592147f-4ef9-44f0-b74c-05c3d4e72dc0) Welcome to the Lesserafim Mobile App! This project includes images that are used for demonstration purposes and are credited to their respective sources. ## Photo Disclaimer The images used in this project, including group photos, album covers, and member images, are sourced from various platforms such as Pinterest. These images are used solely for illustrative and educational purposes within the context of the Lesserafim Mobile App. All credits for the original images go to their respective creators and owners. The use of these images in this project does not imply any endorsement or affiliation with the original creators. Arigathanks gozaimuch!
null
expo,javascript,mobile-app,react-native
2024-02-18T16:19:32Z
2024-02-18T18:17:27Z
null
1
0
6
0
0
4
null
null
JavaScript
Suraj-kumar00/GITM_TechFest
main
# [Welcome to Techस्पर्धा 2024](https://suraj-kumar00.github.io/GITM_TechFest/#team) ![Techस्पर्धा](./assets/Github_READEM_Banner/GITM_TechFest_Banner.png) Get ready to immerse yourself in a dynamic and exciting event designed to ignite your passion for technology. Organized by the Global Institute of Technology and Management in Farrukhnagar, Gurugram, Techस्पर्धा 2024 promises to be an unforgettable experience for students, tech enthusiasts, and aspiring professionals. Mark your calendars! The event takes place on March 13th and 14th on the college campus and offers a variety of activities for over 400 attendees to participate in. What awaits you at Techस्पर्धा 2024? ## 9 Dive into the world of technology through a diverse range of events, including: > * Prototype Model: Learn the iterative development approach and create a basic software model. > * Debug Dive:Racing against Glitches: Test your problem-solving skills in a race against glitches. > * Coding Competition: Showcase your coding prowess and compete with fellow enthusiasts. > * E-sports: Experience the thrill of competitive gaming. > * Technical Rangoli: Combine creativity and technology in a unique art form. > * Photography and Reel: Capture the essence of the event through your lens. > * Paper Presentation: Share your knowledge and research findings with the audience. > * Business Plan: Develop your entrepreneurial spirit and present your business ideas. > * Ad Mad Show: Put your creative thinking and marketing skills to the test. --- Join our vibrant tech community: Expand your network, connect with like-minded individuals, and forge lasting bonds. Our Discord server provides a platform for collaboration, innovation, and exploration of various tech fields. <p align="left"> <a href="https://discord.com/invite/xmM3cQUSyF"> <img src="https://github.com/yash02k3/GITM_TechFest/blob/yash/contributer/assets/logo/DevsDialogue%20Logo.png" alt="DevsDialogue" width="200px" height="200px"> <br> DevsDialogue </a> </p> Unforgettable experience: Get ready for exciting surprises and goodies that will make your participation at Techस्पर्धा 2024 truly memorable. Tech Stack: This project is built using HTML, CSS, and JavaScript. Developed by: [Suraj](https://github.com/Suraj-kumar00) and [Mohit](https://github.com/mohitjoping) Join the conversation: Explore more tech fields, engage with other tech enthusiasts, and build a strong network by joining our Devs Dialogue community through the "Join Our Community" tab. We look forward to seeing you at Techस्पर्धा 2024!
This is the GITM College Tech Fest 2024 Website.
cicd,css,dockerfile,html,javascript,tech-fest,static-website,techfest-2024
2024-02-26T16:05:38Z
2024-03-10T18:01:43Z
null
3
3
109
0
3
4
null
MIT
HTML
joao-mbn/react-extract
main
# VS Code React Extract <p align="center"> <img src="./assets/logo.png" alt="extension-logo" /> </p> This extension for Visual Studio Code provides a quick way to refactor your React code. It allows you to extract a valid piece of component code into a new function, automatically passing the props and building the extracted component interface, if using Typescript. ## Installation [Get it at Visual Studio Code Marketplace: React Extract](https://marketplace.visualstudio.com/items?itemName=joao-mbn.react-extract) ## Features ![demo-image](./assets/extension-demo.gif) - **Code Extraction**: Select a valid piece of React component code that you want to refactor. - **Quick Refactor Action**: Use the Code Actions feature (`Ctrl + .` or `Cmd + .`, by default) to initiate the refactoring process. - **Component Naming**: Pass the component name at the input prompt. - **Automatic Prop Passing**: The extension will automatically identify and pass the necessary props to the new function. - **TypeScript Support**: If you're using TypeScript, the extension will also build the interface for the new function. - **Code Placement**: The new function will be placed at the bottom of the current file. ### Configurations You may customize the way that the extracted component is built, with the following options on your Settings (`Ctrl + ,` or `Cmd + ,`, by default): #### "Type Declaration" | "reactExtract.typeDeclaration" - **Description**: The type of type declaration to be used when extracting the component. - **Accepts**: `"interface" | "type"` - **Default**: `"interface"` ```typescript // interface interface ComponentProps { // ... } // type type ComponentProps = { // ... }; ``` #### "Function Declaration" | "reactExtract.functionDeclaration" - **Description**: The type of function declaration to be used when extracting the component. - **Accepts**: `"arrow" | "function"` - **Default**: `"function"` ```javascript // arrow const Component = () => ( //... ) // function function Component() { //... } ``` #### "Declare With React FC" | "reactExtract.declareWithReactFC" - **Description**: Whether to declare the component using React.FC or not. [Only takes effect if "Function Declaration" is set to "Arrow Function"]. - **Accepts**: `"true" | "false"` - **Default**: `"false"` ```typescript // true const Component: React.FC<ComponentProps> = ({...props}) => ( //... ) // false const Component = ({...props}: ComponentProps) => ( //... ) ``` #### "Explicit Return Statement" | "reactExtract.explicitReturnStatement" - **Description**: Whether to create the extracted component with explicit return statement or not. [Only takes effect if "Function Declaration" is set to "Arrow Function"]. - **Accepts**: `"true" | "false"` - **Default**: `"false"` ```typescript // true const Component: React.FC<ComponentProps> = ({...props}) => { return (<Extracted />) } // false const Component = ({...props}: ComponentProps) => (<Extracted />) ``` ## Contributions If you encounter any problems or have suggestions for improvements, please open an issue. Your feedback and contribution is appreciated. If you have the agreed solution as well, please open a pull request. ### Application Setup Clone the repo, install dependencies and enter VS Code. ```sh $ https://github.com/joao-mbn/react-extract.git $ cd react-extract $ npm i $ code . ``` ### Running and Debugging the Application - Comment the following block of code in `webpack.config.js` to avoid conflicts with the ts-lib files in the `node_modules`: ```javascript plugins: [ new CopyPlugin({ patterns: [{ from: 'node_modules/typescript/lib/*.d.ts', to: '[name][ext]' }] }) ]; ``` - Go to **Run and Debug** and select **Run Extension** from the menu. Hit the play button or F5. For more information go to the [Official VS Code Extension Development Docs](https://code.visualstudio.com/api/get-started/your-first-extension). ### Running Tests 1. Install the [Extension Test Runner](https://marketplace.visualstudio.com/items?itemName=ms-vscode.extension-test-runner) and [TypeScript + Webpack Problem Matchers](https://marketplace.visualstudio.com/items?itemName=amodio.tsl-problem-matcher) extensions. 2. Open the Command Palette `Ctrl + Shift + P` or `Cmd + Shift + P`. 3. Select **Task: Run Task**. 4. Select **tasks: watch tests**. 5. Run the tests from the test explorer. #### Creating a new Integration test for Extract Component You can add a new folder under the `src/test/components` folder with the .jsx and .tsx files and their results using the project's naming convention via a script, as follows: ```sh $ npm run create-test myNewTestCase ``` _Replace **myNewTestCase** with the appropriate test case name._ ## Release Notes [Checkout the Changelog](./CHANGELOG.md) ## Limitations This extension is currently not fully supportive of Class Components. You can use it just fine on them, but the passed props may be wrongy extracted. Let it be known if you wish full support on them. Even with this disclaimer, be welcome to open issues related to its use with Class Components, as to improve the implementation when support is given.
A VS Code Extension for extracting a valid piece of JSX code into a new function, passing props and creating its interface.
javascript,jsx,react,refactor,tsx,typescript
2024-02-08T17:21:02Z
2024-05-19T01:59:11Z
null
1
6
124
0
0
4
null
MIT
TypeScript
anurag87204/Stop-watch
main
# Stop-Watch A stopwatch is the best way to keep track of your time. You'll have the power to control your time, because every seconds count. ## Features - Start/Stop: Start and stop the timer at any point. - Reset: Reset the timer to zero. - Accuracy: High accuracy in measuring time intervals. ## Technology Used * HTML * CSS * JavaScript ## What I learned 🧠 * Using Window Object Properties * How to select HTML element in the DOM * Heavily focused on the JavaScript conditionals (if/else if/else) * Working with functions ## Contributing Contributions are welcome! Feel free to open an issue or submit a pull request. ### How it looks 🎥
A stopwatch is the best way to keep track of your time. You'll have the power to control your time, because every second count.
css,html,javascript,watch
2024-02-01T08:02:45Z
2024-02-10T06:23:29Z
null
1
0
3
0
0
4
null
null
CSS
MrTech-AK/Analog.OnlineClock
main
<h1 align="center">Analog Online.Clock</h1> <p align="center"> <img src="https://img.shields.io/github/stars/MrTech-AK/Analog.OnlineClock?style=for-the-badge&color=yellow"> <img src="https://img.shields.io/github/forks/MrTech-AK/Analog.OnlineClock?color=cyan&style=for-the-badge&color=purple"> <img src="https://img.shields.io/github/license/MrTech-AK/Analog.OnlineClock?style=for-the-badge&color=orange"><br> <br> <br> <img src="https://img.shields.io/badge/Author-MrTech.AK-purple?style=flat-square"> <img src="https://img.shields.io/badge/Open%20Source-Yes-cyan?style=flat-square"> <img src="https://img.shields.io/badge/Version-v1.0-cyan?style=flat-square"> </p> ## Description The Analog Clock project on GitHub is a beautifully crafted representation of time in a classic analog format. Developed with precision and elegance, this clock brings the charm of traditional timekeeping to the digital realm. This clock is not just a functional timepiece but also a work of art, meticulously designed with attention to detail. Its sleek interface offers a seamless experience, allowing users to effortlessly keep track of time in an intuitive manner. With its minimalist design, the Analog Clock focuses on simplicity and clarity, making it easy to read at a glance. The smooth movement of the clock hands replicates the fluidity of a real analog clock, providing a visually pleasing experience. One of the notable features of this clock is its versatility. It can be easily integrated into various applications and websites, enhancing their aesthetics and functionality. Whether used as a standalone widget or embedded within a larger project, the Analog Clock adds a touch of sophistication to any digital environment. Built using advanced web technologies, this clock is not only visually appealing but also highly responsive and reliable. Its efficient code ensures smooth performance across different devices and platforms, making it accessible to a wide audience. Overall, the Analog Clock project on GitHub is a testament to the beauty of simplicity and the artistry of timekeeping. Whether you're a developer looking to enhance your project or simply appreciate the elegance of analog clocks, this project is sure to impress. ## Check Out Demo Clock [CLICK HERE](https://analog-online-clock.vercel.app/) to view the analog clock online.. **Total Views** ![Views](https://profile-counter.glitch.me/Analog.OnlineClock/count.svg) # Star This Repository > This project took me 3 Days to finish! Your one star inspires me to create more projects! So, Star This Repository! <h1 align="center">Coded with Love by MrTech-AK</h1> ## Copyright Notice All content, including but not limited to code, documentation, and assets, within the Analog.ClockOnline repository is protected under copyright law. This repository, authored by Akshat [MrTech-AK], is provided for educational purposes only. It does not promote or condone any unauthorized access, modification, or misuse of computer systems or networks. You are granted the right to use, modify, and distribute the contents of this repository for educational and non-commercial purposes. However, you must adhere to the following conditions: ```go 1. You may not use the contents of this repository for illegal or unethical activities. 2. You may not misrepresent the origin or authorship of the contents of this repository. 3. You may not hold the author or contributors liable for any damages or legal issues arising from the use or misuse of the contents of this repository. ``` By accessing or using the contents of this repository, you agree to abide by these terms and conditions.
The Analog Clock project on GitHub is a beautifully crafted representation of time in a classic analog format. Developed with precision and elegance, this clock brings the charm of traditional timekeeping to the digital realm.
analog-clock,analog-clock-html-css-javascript,clock,css,digitalclock,html,html-css-javascript,javascript,js,clockonline
2024-03-13T07:13:18Z
2024-03-14T06:16:05Z
null
1
0
8
0
0
4
null
MIT
HTML
dkosmari/gnome-shell-extension-totp
master
TOTP ==== This is a GNOME Shell extension to generate TOTP (Time-based OTP) authentication codes (such as the ones used by Google, Facebook, Github, Steam, etc). ![screenshot](screenshot.png) Security -------- The OTP secret is stored in the [GNOME Keyring](https://wiki.gnome.org/Projects/GnomeKeyring), in a separate collection called "OTP". For improved security, users can lock this collection with its own password. During normal usage, the extension will load the specific OTP secret (unlocking the Keyring if necessary), copy the authentication code to the clipboard, and immediately wipe the OTP secret from memory. In the preferences window, sensitive data (the "otpauth://" URIs) are automatically erased from the clipboard after a few seconds (30 by default). Installing from GNOME Shell Extensions website ---------------------------------------------- The extension can be obtained from the [GNOME Shell Extensions website](https://extensions.gnome.org/extension/6793/totp/). Installing from sources ----------------------- Prerequisites: - [make](https://www.gnu.org/software/make/) - [jq](https://stedolan.github.io/jq/) Run: make install Importing and exporting URIs ---------------------------- It's possible to import and export OTP secrets that conform to [Google's Key URI Format](https://github.com/google/google-authenticator/wiki/Key-Uri-Format). This format is compatible with applications like Google Authenticator, FreeOTP, Authy, etc. Scanning QR codes ----------------- It's possible to scan QR codes from a camera and from the clipboard, if you have the [ZBar](https://zbar.sourceforge.net/) package installed. In some distros (like Debian and Ubuntu) the package is named `zbar-tools`. Exporting QR code ----------------- It's possible to export the OTP secret as a QR code to be scanned into other devices, if you have the [qrencode](https://fukuchi.org/works/qrencode/) package installed. Importing Steam Guard secret ---------------------------- You can generate Steam Guard Mobile Authenticator codes. 1. Search the web for instructions on how to extract your Steam Guard `shared_secret`. The method may vary depending on factors like your Android version, rooted status, Steam Mobile version, etc. 2. The `shared_secret` is encoded in `Base64`, not `Base32`; so when you import it, select `Base64`. The secret will still be stored in the keyring in `Base32` encoding, so don't be alarmed that it "changed" after you saved it. 3. Set `Digits = 5`. Everything else is the default: `Period = 30`, `Algorithm = SHA-1`. 4. The issuer must be `Steam`, to activate the special OTP encoding that Steam Guard uses, using letters. Otherwise it will generate authentication codes in decimal, which are not recognized by Steam. Related extensions ------------------ When using this extension on a laptop, it's a good idea to also install [Keyring Autolock](https://extensions.gnome.org/extension/6846/keyring-autolock/). It will ensure your Keyring gets locked after a period of time, so you never forget to keep your OTP secrets protected.
A GNOME Shell extension to generate Time-based One-Time Passwords (TOTP aka Time-based OTP) for websites that use 2FA.
gnome-shell-extension,javascript,otp,otp-generator,otpauth,totp,2fa,2factor,cryptography,security
2024-02-26T13:46:41Z
2024-04-14T12:20:37Z
null
2
1
69
0
1
4
null
GPL-3.0
JavaScript
stefcameron/text-to-canvas
master
[![CI](https://github.com/stefcameron/text-to-canvas/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stefcameron/text-to-canvas/actions/workflows/ci.yml) [![license](https://badgen.now.sh/badge/license/MIT)](./LICENSE) # text-to-canvas Render multiline plain or rich text into textboxes on HTML Canvas with automatic line wrapping. ## Origins and Differences 🙌 This library would not exist were it not for all the work done by its original author, [Geon George](https://geongeorge.com/), in his [canvas-txt](https://github.com/geongeorge/Canvas-Txt) library. The main feature that sparked `text-to-canvas` is a significant [update](https://github.com/geongeorge/Canvas-Txt/pull/95) to the original code base in order to support rich text formatting, which introduced the concept of a `Word` specifying both `text` and (optional) associated CSS-based `format` styles. A sentence is then simply a `Word[]` with/out whitespace (optionally inferred). Plain text (i.e. a `string`) is still supported as a convenience via the `drawText()`, `splitText()`, and `textToWords()` [APIs](#api). The main differences (at `v1.0.0`) between `canvas-txt` and this library are: - Formal support for Node by `canvas-txt` vs this library's support solely focused on the [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement). - This library's concerted effort to [support](#web-worker-and-offscreencanvas) [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) and use of an [OffscreenCanvas](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas), neither of which is formally supported by `canvas-txt`. The feature gap may widen with future releases of both libraries. While there is a [Node](#node) [demo](./src/demos/node-demo.mts), it only works because the `node-canvas` library being used supports enough of the `HTMLCanvasElement`'s API, not because this library formally supports Node, or `node-canvas`. ## Features - ✅ Rich text formatting (with the exception of words with different font _sizes_ not yet working well in terms of text baseline alignment) - ✅ Multiline text - ✅ Auto line breaks - ✅ Horizontal alignment - ✅ Vertical alignment - ✅ Justification - ✅ Optimized performance with support for Web Workers and `OffscreenCanvas` ## Demo See demo [here](https://stefcameron.github.io/text-to-canvas/). # Installation ```bash $ npm install text-to-canvas # OR $ yarn add text-to-canvas ``` > 💡 If this fails with a `node-pre-gyp` compilation error, please see [Compilation of the canvas package](#compilation-of-canvas-package) for help. ## Compilation of canvas package This project __optionally__ depends on the [canvas](https://github.com/Automattic/node-canvas) package which enables it to be used in a Node [demo](#node). Since this package needs to be compiled for use on the platform on which you intend to install/use it, the author must either include pre-built binaries specific to your OS when they make a [release](https://github.com/Automattic/node-canvas/releases), or a new binary must be compiled by your package manager (i.e. `npm`) upon installation. If you're installing on a newer Apple M1, M2, or M3 computer, or if you're using a version of Node newer than v20 (the latest LTS at time of writing), you may experience a `node-pre-gyp` failure because `canvas` doesn't provide pre-built binaries for the ARM64 architecture, only providing x86-64 (Intel x64) binaries for Node v20. > ❗️ __Before installing text-to-canvas__, refer to the `canvas` [compilation](https://github.com/Automattic/node-canvas?tab=readme-ov-file#compiling) page for your OS/architecture, especially if you aren't on an Apple computer. For Apple M computers (ARM64), this worked for me using [HomeBrew](https://brew.sh/) and [pyenv](https://github.com/pyenv/pyenv) to install additional compiler dependencies: ```bash $ brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman $ pyenv install 3.12.1 # install Python 3.12 on which `cairo` depends $ pyenv local 3.12.1 $ npm install # should succeed ``` # Usage Use with a bundler (Webpack, Rollup, Vite, etc) or directly in a browser is supported. Use in Node is only supported to the extent that appropriate bundles are provided. Make sure you use a Node-base Canvas library that supports the [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement) API. ## Bundler Two bundles are provided for this type of target: - `./dist/text-to-canvas.esm.min.js` (ESM, `import`, ES2020+) - `./dist/text-to-canvas.min.js` (CJS, `require()`, ES2019+) Used implicitly when using the library in a larger app bundled with a bundler like Webpack, Rollup, or Vite. Declare a Canvas in your DOM (directly, via JSX, or other): ```html <canvas id="my-canvas" width="500" height="500"></canvas> ``` Call the `drawText()` [API](#api): ```javascript import { drawText, Word } from 'text-to-canvas'; const canvas = document.getElementById('my-canvas'); const ctx = canvas.getContext('2d'); ctx.clearRect(0, 0, 500, 500); // plain text const text = 'Lorem ipsum dolor sit amet'; // OR with some formatting const text: Word[] = [ { text: 'Lorem' }, { text: 'ipsum', format: { fontWeight: 'bold', color: 'red' } }, { text: 'dolor', format: { fontStyle: 'italic' } }, { text: 'sit' }, { text: 'amet' }, ]; drawText(ctx, text, { x: 100, y: 200, width: 200, height: 200, fontSize: 24, }); ``` If you need to know the total render height, `drawText()` returns it: ```javascript const { height } = drawText(...); ``` > ⚠️ The library doesn't yet fully support varying font sizes, so you'll get best results by keeping the size consistent (via the [base font size](#drawtext-config)) and changing other formatting options on a per-`Word` basis. ## Browser One bundle is provided for this type of target: - `./dist/text-to-canvas.umd.min.js` (UMD, ES2019+) Used implicitly when loading the library directly in a browser: ```html <body> <canvas id="my-canvas" width="500" height="500"></canvas> <script src="//unpkg.com/text-to-canvas"></script> <script> const { drawText, getTextHeight, splitText } = window.textToCanvas; /// ...remainder is the same </script> </body> ``` ## Node Two bundles are provided for this type of target: - `./dist/text-to-canvas.mjs` (ESM/MJS, `import`, Node v20.11.1+) - `./dist/text-to-canvas.cjs` (CJS, `require()`, Node v20.11.1+) > ⚠️ Other than the bundles, __Node is not formally supported by this library__, and neither is the `node-canvas` library used in the demo. Whatever "Node Canvas" library you use, make sure it supports the [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement) API and it _should_ work. Used implicitly when importing or requiring the library in your Node scripts: ```javascript import { drawText } from 'text-to-canvas'; // MJS // OR const { drawText } = require('text-to-canvas'); // CJS ``` See Node demo in [./src/demo/node-demo.ts](https://github.com/stefcameron/text-to-canvas/blob/master/src/demos/node-demo.mts) for an example. You can run this demo locally with `npm run node:demo` # API ## drawText config ![](./src/docs/canvas.jpg) | Properties | Default | Description | | :---------------: | :----------: | :-----------------------------------------------------------: | | `width` | **Required** | Width of the text box. | | `height` | **Required** | Height of the text box. | | `x` | `0` | X position of the text box. | | `y` | `0` | Y position of the text box. | | `align` | `center` | Text align. Other possible values: `left`, `right`. | | `vAlign` | `middle` | Text vertical align. Other possible values: `top`, `bottom`. | | `font` | `Arial` | Base font family of the text. | | `fontSize` | `14` | Base font size of the text in px. | | `fontStyle` | `''` | Base font style, same as css font-style. Examples: `italic`, `oblique 40deg`. | | `fontVariant` | `''` | Base font variant, same as css font-variant. Examples: `small-caps`. | | `fontWeight` | `'400'` | Base font weight, same as css font-weight. Examples: `bold`, `100`. | | `fontColor` | `'black'` | Base font color, same as css color. Examples: `blue`, `#00ff00`. | | `justify` | `false` | Justify text if `true`, it will insert spaces between words when necessary. | | `inferWhitespace` | `true` | If whitespace in the text should be inferred. Only applies if the text given to `drawText()` is a `Word[]`. If the text is a `string`, this config setting is ignored. | | `overflow` | `true` | Allows the text to overflow out of the box if the box is too narrow/short to fit it all. `false` will clip the text to the box's boundaries. | | `debug` | `false` | Draws the border and alignment lines of the text box for debugging purposes. | ## Functions ```js import { drawText, specToJson, splitText, splitWords, textToWords, wordsToJson, getTextHeight, getWordHeight, getTextStyle, getTextFormat, } from 'text-to-canvas' ``` > ⚠️ Varying font sizes on a `Word` level (as given to `drawText()` or `splitWords()`) is not supported very well at this time. For best results, keep the font size consistent by relying on a single base font size as specified in the `drawText()` [config options](#drawtext-config). - `drawText()`: Draws text (`string` or `Word[]`) to a given Canvas. - `specToJson()`: Converts a `RenderSpec` to a JSON string. Useful for sending it as a message through `Worker.postMessage()`. - `splitText()`: Splits a given `string` into wrapped lines. - This is just a convenience over `splitWords()` if you aren't needing rich text. It's only real value is that it will return the input text as an array of strings according to how the text would be wrapped on Canvas. - `splitWords()`: Splits a given `Word[]` into wrapped lines. - `textToWords()`: Converts a `string` into a `Word[]`. Useful if you want to then apply rich formatting to certain words. - `wordsToJson()`: Converts a `Word[]` to a JSON string. Useful for sending it as a message to a Worker thread via `Worker.postMessage()`. - `getTextHeight()`: Gets the measured height of a given `string` using a given text style. - `getWordHeight()`: Gets the measured height of a given `Word` using its text style. - `getTextStyle()`: Generates a CSS Font `string` from a given `TextFormat` for use with `canvas.getContext('2d').font` - `getTextFormat()`: Generates a "full" `TextFormat` object (all properties specified) given one with only partial properties using prescribed defaults. TypeScript integration should provide helpful JSDocs for every function and each of its parameters to further help with their use. # Examples ## Web Worker and OffscreenCanvas If you want to draw the text yourself, or even offload the work of splitting the words to a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) using an [OffscreenCanvas](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas), you can use the `splitWords()` [API](#api) directly. > This requires using `wordsToJson()` and `specToJson()` APIs to ensure all required information is properly transferred between the UI/main thread and the worker thread, particularly concerning the cached [TextMetrics](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics). <details> <summary>Sample code</summary> <br/> Add a Canvas to your DOM: ```html <canvas id="my-canvas" width="500" height="500"></canvas> ``` Define a Web Worker, `worker.js`: ```javascript import { splitWords, specToJson } from 'text-to-canvas'; const wrapLines = ({ containerWidth, wordsStr, baseFormat }) => { // NOTE: height doesn't really matter (aside from being >0) as text won't be // constrained by it; just affects alignment, especially if you're wanting to // do bottom/middle vertical alignment; for top/left-aligned, height for // splitting is basically inconsequential const canvas = new OffscreenCanvas(containerWidth, 100); const context = canvas.getContext('2d'); const words = JSON.parse(wordsStr); const spec = splitWords({ ctx: context, words, x: 0, y: 0, width: containerWidth, align: 'left', vAlign: 'top', format: baseFormat, // doesn't really matter (aside from being >0) as long as you only want // top/left alignment height: 100, }); self.postMessage({ type: 'renderSpec', specStr: specToJson(spec), // because of `TextMetrics` objects that fail serialization }); }; self.onmessage = (event) => { if (event.data.type === 'split') { wrapLines(event.data); } }; export {}; // make bundler consider this an ES Module ``` Use the Worker thread to offload the work of measuring and splitting the words: ```typescript import { Word, RenderSpec, TextFormat, wordsToJson, getTextStyle } from 'text-to-canvas'; const canvas = document.getElementById('my-canvas'); const ctx = canvas.getContext('2d'); const drawWords = (baseFormat: TextFormat, spec: RenderSpec) => { const { lines, height: totalHeight, textBaseline, textAlign, } = spec; ctx.save(); ctx.textAlign = textAlign; ctx.textBaseline = textBaseline; ctx.font = getTextStyle(baseFormat); ctx.fillStyle = baseFormat.fontColor; lines.forEach((line) => { line.forEach((pw) => { if (!pw.isWhitespace) { if (pw.format) { ctx.save(); ctx.font = getTextStyle(pw.format); if (pw.format.fontColor) { ctx.fillStyle = pw.format.fontColor; } } ctx.fillText(pw.word.text, pw.x, pw.y); if (pw.format) { ctx.restore(); } } }); }); }; const words: Word[] = [ { text: 'Lorem' }, { text: 'ipsum', format: { fontWeight: 'bold', color: 'red' } }, { text: 'dolor', format: { fontStyle: 'italic' } }, { text: 'sit' }, { text: 'amet' }, ]; const baseFormat: TextFormat = { fontSize: 12, fontFamily: 'Times New Roman', fontColor: 'black', }; // create a worker thread const worker = new Worker('./worker.js', { type: 'module' }); // queue the worker to split and measure the words as necessary for the // specified width given base and any word-specific formatting worker.postMessage({ type: 'split', containerWidth: 500, wordsStr: wordsToJson(words), baseFormat, }); // listen for the "done" signal from the worker worker.onmessage = (event) => { if (event.data?.type === 'renderSpec') { worker.terminate(); const spec: RenderSpec = JSON.parse(event.data.specStr); // render the spec (containing the `PositionedWord[]` with all the necessary // information) drawWords(baseFormat, spec); } }; ``` </details>
Render multiline plain or rich text into textboxes on HTML Canvas with automatic line wrapping
canvas,es6,html,javascript,library,node,richtext,wrapping,multiline
2024-03-04T20:32:48Z
2024-05-22T14:52:05Z
null
6
67
277
1
0
4
null
MIT
TypeScript
JordiBustos/express-starter
main
# Express Starter Project Welcome to the Express Starter Project! This project is designed to provide you with a solid foundation for building an Express.js site with pre-configured authentication/authorization processes with JWT, database models, and role-based access control. This project follows the MVC pattern. - Redis for caching - express-session storage with RedisStorage - postgresql as database - bcrypt for hashing - jest for testing - socket.io. - Sequelize as ORM - swagger for API documentation // todo - Crypto with AES for encrypting data - JWT for authentication - Docker for containerization - node-cron for scheduling tasks ## Installation To get started, follow these steps: Clone this repository to your local machine: ```bash git clone https://github.com/JordiBustos/node-starter.git cd node-starter docker-compose build docker-compose up ``` To run tests: ```bash docker-compose -f docker-compose.dev.yml up ``` ## Environment Variables Before running the application, make sure to set the following environment variables in a .env file at the root of the project: ```bash DB_USER='postgres' DB_HOST='db' DB_NAME='db_name' DB_PASSWORD='password' DB_PORT=5432 PORT=3000 JWT_SECRET=1234 REDIS_URL='redis://redis:6379' REDIS_DATABASES=16 REDIS_PASSWORD='password' REDIS_HOST=redis REDIS_PORT=6379 SESSION_SECRET=1234 ALLOWED_DOMAIN='http://localhost:3000' NODE_ENV='development' ``` ## Contributing If you encounter issues or have suggestions for improvement, feel free to open an issue or submit a pull request. Contributions are welcome! ## License This project is licensed under the MIT License.
Starter code for an express app
docker,esm,express,express-middleware,express-session,expressjs,helmet,javascript,jwt,nodejs
2024-01-26T20:52:31Z
2024-02-09T19:44:34Z
null
1
9
72
0
0
4
null
MIT
JavaScript
vovod/portfolio
main
https://vovod.github.io/portfolio/ # A website using Html5, Css3, Bootstrap5, JavaScript and Jquerry. ![webview](/readme/screen.gif?raw=true)
basic portfolio, visit: https://vovod.github.io/portfolio/
bootstrap5,css,html,javascript,jquery,portfolio-website
2024-02-08T14:40:41Z
2024-02-19T03:39:17Z
null
1
0
14
0
0
4
null
null
JavaScript
guest271314/MP3Recorder
main
### MP3Recorder Record `MediaStreamTrack` to MP3 file in the browser #### Usage ``` let recorder = await new MP3Recorder(mediaStream.getAudioTracks()[0]); await recorder.start(); let blob = await recorder.stop(); ``` #### Dependencies [Ecmascript Module version](https://raw.githubusercontent.com/guest271314/captureSystemAudio/master/native_messaging/capture_system_audio/lame.min.js) of [lamejs](https://github.com/zhuker/lamejs/). #### MP3 (license) references - https://www.iis.fraunhofer.de/en/ff/amm/consumer-electronics/mp3.html - https://www.audioblog.iis.fraunhofer.com/mp3-software-patents-licenses #### License Do What the Fuck You Want to Public License [WTFPLv2](http://www.wtfpl.net/about/)
Record MediaStreamTrack to MP3 file
audioworklet,browser,javascript,mediastream,mp3,recorder,webaudio-api
2024-02-25T02:00:45Z
2024-03-28T23:31:38Z
null
1
0
18
1
0
4
null
WTFPL
JavaScript
faesalabid/teaofassam
master
# React + Vite This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. Currently, two official plugins are available: - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
An ecommerce website, featuring responsive layouts, wishlist/cart functionalities, and animations, all crafted with ReactJS.
css,html,javascript,react-ecommerce,reactjs
2024-02-20T22:12:13Z
2024-02-20T22:17:44Z
null
1
0
1
0
0
4
null
null
JavaScript
vondas-network/MagicEdenJS
main
# MagicEdenJS <h3 align="center"> <img height="50%" width="50%" src="https://s6-recruiting.cdn.greenhouse.io/external_greenhouse_job_boards/logos/400/050/700/original/Magic-Eden-Logo-Vector.png?1706565078"/> </h3> An API service for getting Rare Sats and Bitcoin Ordinal listing data from Magic Eden. ## What can this service do? * Aggregate Rare Sats listings on Magic Eden and filter by *sat type* * Aggregate Bitcoin Ordinal listings on Magic Eden and filter using a *time interval* * Load API image on another computer and *schedule* requests* with cron ## How does it work? ### Build & Run Docker Image 1. Build the Docker image * ```docker build -t magicedenjs-api .``` 2. Run Docker image * ```docker run -p 7100:7100 -v FILE_DIRECTORY_FOR_SAVING_FILES:/app/tmp magicedenjs-api:latest``` --- ### Load Docker Image 1. Load Docker image * ```docker load -i magicedenjs-api_latest.tar.gz``` 2. Run Docker image * ```docker run -p 7100:7100 -v FILE_DIRECTORY_FOR_SAVING_FILES:/app/tmp magicedenjs-api:latest``` --- ### Local install 1. Install dependencies * ``` npm i ``` 2. Start project * ```node app.js ``` ## API Functions ### processBtcListings <h3 align="center"> <img height="100%" width="100%" src="https://github.com/vondas-network/MagicEdenJS/blob/main/img/MagicEdenJS-BitcoinOrdinalListings.png?raw=true"/> </h3> #### Endpoint ``` /magiceden/process-btc-listings ``` #### Parameters * timeInterval * 10m * 1h * 6h * 1d * 7d * 30d #### Example ``` bash /magiceden/process-btc-listings?timeInterval=10m ``` #### Response ``` json [ { "chain": "bitcoin", "collectionId": "nodemonkes", "collectionSymbol": "nodemonkes", "vol": 0.544, "txns": 2, "totalVol": 0.544, "fp": 0.2439, "marketCap": 2439, "totalSupply": 10000, "ownerCount": 4579, "listedCount": 1032, "pending": 2, "uniqueOwnerRatio": 0.4579, "name": "NodeMonkes", "image": "https://creator-hub-prod.s3.us-east-2.amazonaws.com/ord-nodemonkes_pfp_1705639827890.png", "description": "The first original 10k collection inscribed on bitcoin.", "currency": "BTC", "currencyUsdRate": 51447.74, "marketCapUsd": 125481037.86 }, { "chain": "bitcoin", "collectionId": "quantum_cats", "collectionSymbol": "quantum_cats", "vol": 0.423, "txns": 2, "totalVol": 0.423, "fp": 0.22, "marketCap": 733.26, "totalSupply": 3333, "ownerCount": 2590, "listedCount": 463, "pending": 2, "uniqueOwnerRatio": 0.7770777077707771, "name": "Quantum Cats", "image": "https://creator-hub-prod.s3.us-east-2.amazonaws.com/ord-taproot_wizards_presents_pfp_1706542390359.png", "description": "The Quantum Cats by Taproot Wizards are on a mission to revive Satoshi's beloved pet and scripting function, OP_CAT.", "currency": "BTC", "currencyUsdRate": 51447.74, "marketCapUsd": 37724569.8324 }, { "chain": "bitcoin", "collectionId": "rmm", "collectionSymbol": "rmm", "vol": 0.10859, "txns": 8, "totalVol": 0.10859, "fp": 0.0134, "listedCount": 400, "pending": 6, "uniqueOwnerRatio": 0, "name": "Rune Mania Miner", "image": "https://creator-hub-prod.s3.us-east-2.amazonaws.com/ord-rmm_pfp_1708461604099.png", "description": "Rune Mania: Utilize your RMM to mine Runes using:⛏️ Mining Boosts🧱 Block Boosts🧪 Mana Boosts🗿 Stone Boosts ✨ Rune Boosts", "currency": "BTC", "currencyUsdRate": 51447.74 }, ... ] ``` --- ### processSatUrl Search for a specific Rare Sats. Rare Sats are attributes, or "satributes," ascribed to different types of sats. Sats are the smallest unit of a Bitcoin, and satributes commemorate special moments like when a sat was mined or used in a transaction. <h3 align="center"> <img height="100%" width="100%" src="https://github.com/vondas-network/MagicEdenJS/blob/main/img/MagicEdenJS-RareSatsListings.png?raw=true"/> </h3> #### Endpoint ``` /magiceden/process-sat-url ``` #### Parameters * satType * Uncommon * Rare * Epic * Legendary * Black Uncommon * Black Rare * Black Epic * Black Legendary * Palindrome * Uniform Palinception * Perfect Palinception * Vintage * Nakamoto * Block 9 * Block 286 * Block 78 * First Transaction * Pizza * Alpha * Omega * JPEG #### Example ``` bash /magiceden/process-sat-url?satType=Rare ``` #### Response ``` json { "Satributes": [ { "value": "Rare", "label": "Rare", "floor": 4 } ] } ``` --- ## How to save a new Docker image? 1. Build Docker image * ```docker build -t magicedenjs-api .``` 2. Save Docker image * ```docker save magicedenjs-api:latest | gzip > magicedenjs-api_latest.tar.gz``` --- ## Cron * Open *[crontab](https://www.geeksforgeeks.org/crontab-in-linux-with-examples/)* ``` bash crontab -e ``` * Add a new *job*. Every 10 minutes, create an HTTP GET Request for the API service using cURL. ``` text */10 * * * * /usr/bin/curl --silent 'http://localhost:7100/magiceden/process-btc-listings?timeInterval=10m' ``` * Optionally, create a second *job* to track the HTTP GET Requests. ``` text */10 * * * * echo "JOB at $(date)" >> ~/Desktop/job-tracker.txt ```
An API service for getting Rare Sats and Bitcoin Ordinal listing data from Magic Eden.
api,bitcoin,cron,cryptocurrency,docker,javascript,magic-eden,marketplace,nodejs,ordinals
2024-02-19T00:42:43Z
2024-03-07T23:43:22Z
2024-03-07T23:30:31Z
1
0
10
0
1
4
null
GPL-3.0
JavaScript
HuzaifaIlyas02/Amazon-Clone
main
# Amazon Clone This project is a clone of the Amazon website, developed using ReactJS. It includes features such as user authentication, dynamic cart management, and Stripe payment integration. ## 📦Technologies - `ReactJS` - `Firebase (Hosting, Authentication, Database)` - `Material UI` - `React Router DOM` - `React Currency Format` - `React Context API` - `Axios (API Requests)` - `@stripe/stripe-js` and `@stripe/react-stripe-js` - `React Flip Move` - `Moment.js` ## Features - **User Authentication**: Implemented using Firebase authentication. - **Dynamic Cart Management**: Utilizes React Context API for efficient state management. - **Stripe Payment Integration**: Allows users to make secure payments using Stripe. - **Responsive Design**: Works well on a variety of devices and window or screen sizes. ## 🔨The Process I initiated the project by setting up the basic structure using Create React App. Firebase was chosen for hosting, authentication, and database functionalities due to its seamless integration with React and ease of use. The core functionality of the project revolves around the cart management system. Using React Context API, I created a data layer where cart items are stored, allowing for easy access and manipulation across different components. Integration with Stripe for payment processing was achieved through Firebase Cloud Functions. This ensured a secure and reliable payment flow, enhancing the user experience. Throughout the development process, I focused on optimizing performance and ensuring a smooth user experience. React Flip Move was employed for animated transitions, adding a touch of interactivity to the checkout process. ## 📚What I Learned ### ReactJS Proficiency: - Enhanced understanding of ReactJS and its ecosystem. - Proficiency in utilizing Firebase for authentication and database management. ### 🛠 Integration of Third-Party Services: - Integration of third-party services like Stripe for payment processing. ### State Management: - Improved skills in state management using React Context API. ### ⏳Asynchronous Programming: - Experience with asynchronous programming and handling API requests. ## How Can It Be Improved To further enhance the project, the following improvements could be considered: - Implement additional authentication methods such as Google or Facebook login. - Enhance the user interface with more interactive elements and animations. - Optimize performance by implementing lazy loading and optimizing data fetching. - Introduce search functionality for products to improve user experience. - Add menu bars below the header to mimic other features of Amazon. ## Running the Project To run the project locally: 1. Clone the repository to your local machine. 2. Run `npm install` or `yarn` in the project directory to install the required dependencies. 3. Navigate to the folder `cd netflix-clone`. 4. Set up Firebase configuration for hosting, authentication, and database. 5. Replace the Firebase configuration in the project with your own credentials. 6. Run the project using `npm start`. For an overview of the app and its functionalities, please visit [App Overview](https://clone-8ecbd.web.app/). ## Caution Please note that the backend is not deployed on Firebase due to paid limitations. You can deploy the backend on Firebase or use alternative hosting solutions. ## Video https://github.com/HuzaifaIlyas02/Amazon-Clone/assets/86406012/5cdae17b-b8a1-4c5a-ac8c-1761c4c97c43
An Amazon Clone built with ReactJs
css,firebase,html,javascript,reactjs
2024-02-11T10:41:02Z
2024-03-12T14:03:21Z
null
1
1
25
0
0
4
null
null
JavaScript
vickypandey14/User-Roles-and-Permissions-APIs-in-Node-JS-MongoDB
main
# User Roles and Permissions APIs in Node.js & MongoDB [![Tweet](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fvickypandey14%2FUser-Roles-and-Permissions-APIs-in-Node-JS-MongoDB.git)](https://twitter.com/intent/tweet?text=Check%20out%20this%20User%20Roles%20and%20Permissions%20API%20project%20built%20with%20Node.js%20%26%20MongoDB%3A%20https%3A%2F%2Fgithub.com%2Fvickypandey14%2FUser-Roles-and-Permissions-APIs-in-Node-JS-MongoDB.git) A simple repository for managing user roles and permissions through APIs using Node.js and MongoDB. ## Features - **Role-based Authentication:** Implement secure authentication based on user roles, ensuring that users have appropriate access levels. - **Permission Management:** Define and manage granular permissions to control user actions and access within the application. - **User Management API Endpoints:** Explore a variety of API endpoints for effective user management, allowing operations such as user creation, deletion, and retrieval. - **Post and Post Category:** A newly added feature includes post and post category management, expanding the functionality of the application. ## Getting Started 1. Clone the repository: ```bash git clone https://github.com/vickypandey14/User-Roles-and-Permissions-APIs-in-Node-JS-MongoDB.git ``` 2. Install dependencies: ```bash cd User-Roles-and-Permissions-APIs-in-Node-JS-MongoDB npm install ``` ### Create an `.env` file: Create an `.env` file based on the provided `.env.example`. This file should contain your sensitive information, such as database credentials and any other environment variables required. Ensure that the `.env` file is not committed to version control. 3. Set up your MongoDB database and configure the connection in the project. Ensure that the MongoDB server is running and accessible. Modify the configuration files for database connection and environment variables. 4. Run the application: ```bash nodemon index ``` 5. Explore the API endpoints and customize as needed. ## Contributing Feel free to contribute to this project. Fork the repository, make your changes, and submit a pull request.
This project provides a straightforward implementation of user management functionalities, roles, and permissions using Node.js and MongoDB.
express-js,expressjs,javascript,mongodb,mongoose,nodejs,api,express-middleware,express-validator,jwt-authentication
2024-02-16T17:50:51Z
2024-04-13T13:27:33Z
null
1
0
56
0
1
4
null
null
JavaScript
marwan-mohamed12/ebay-clone
main
# ebay-clone Welcome to the eBay Clone repository! This project aims to replicate the functionality and design of the popular e-commerce platform eBay. Whether you're a developer looking to contribute, a curious individual exploring how eBay works behind the scenes, or an entrepreneur seeking inspiration for your own online marketplace, you've come to the right place. # Demo Video - Click here - [![thumbnail](Assets/screenshot.png)](https://drive.google.com/file/d/1RUA6OEUSeCB7TPy3R4mUC2-6vW1_I_iG/view?usp=drive_link) # Table of Contents - Introduction - Features - Installation - Usage - Contributing - License # Introduction This repository contains the source code for an eBay clone, developed using modern web technologies including HTML, CSS, JavaScript, and possibly a backend framework such as Django, Ruby on Rails, or Express.js. The goal is to mimic eBay's core functionalities such as user authentication, product listings, bidding, purchasing, and seller management. # Features - User Authentication: Allow users to sign up, log in, and manage their accounts securely. - Product Listings: Enable users to create listings for items they want to sell. - Shopping Cart: Allow users to add items to their shopping cart for easy checkout. - Payment Integration: Integrate payment gateways to facilitate secure transactions. - Search Functionality: Provide a search bar for users to find specific items quickly. # Installation To get started with running the eBay Clone locally, follow these steps: 1. Clone the repository to your local machine: ``` git clone https://github.com/marwan-mohamed12/ebay-clone.git ``` 2. Navigate to the project directory: ``` cd ebay-clone ``` # Contributing Contributions to the eBay Clone project are welcome! Whether you want to fix a bug, implement a new feature, or improve documentation, feel free to submit pull requests. Please follow the guidelines outlined in the CONTRIBUTING.md file. # License The eBay Clone project is licensed under the MIT License. You are free to use, modify, and distribute the code for both commercial and non-commercial purposes. Refer to the LICENSE file for more information. --- Thank you for checking out the eBay Clone project! If you have any questions or feedback, don't hesitate to contact us. Happy coding! 🚀
Welcome to the eBay Clone repository! This project aims to replicate the functionality and design of the popular e-commerce platform eBay.
bootstrap5,css3,ecmascript6,html5,javascript,json
2024-03-09T20:13:55Z
2024-03-23T17:49:17Z
null
7
1
138
0
0
4
null
null
HTML
IzanamiiDevv/Component-Markup-Languge-Framework-MMLF
main
# Component-Markup-Languge-Framework-CMLF CMLF: Streamlining web development, Component Markup Language Framework offers a beginner-friendly approach. Effortlessly create and deploy components, making UI development intuitive and efficient. Simplify your coding journey with MMLF's powerful yet accessible methods. ## Manual: ### Setup: 1.Download the current CMLF <code>.zip</code> file in the release tab.<br/> 2.Export the downloaded file.<br/> 3.Open the Folder and Copy the MMLF Folder and Paste it into your Existing Project Directory!<br/> 4.Import the CMLF.js file on your html: <code><script type="module" src="MMLF/build/v1.0/index.js"><script></code><br/> Code and Enjoy! ## Tools Used in This Project <img src="https://skillicons.dev/icons?i=html,javascript,vscode,git" /> ### Documentation: #### mmlf-render tag: The <code><cmlf-render></code> Tag is used to Define the type of rendering method this section is not yet done pls wait for the updates!!!
A Basic Framework For Front-End Developers!!!🔧⚗️
framework,html,javascript,vanilla
2024-01-25T16:35:06Z
2024-02-23T19:30:11Z
2024-01-25T16:36:21Z
1
0
32
2
0
4
null
MIT
JavaScript
anurag87204/Restaurant
main
## Restaurant Management System This project is a Restaurant Management System developed using Java. It provides functionalities to manage various aspects of a restaurant, including menu management, order processing, customer management, and employee management. ### Features: - Menu Management: Add, edit, and delete menu items with details such as name, price, and category. - Order Processing: Create, modify, and manage customer orders efficiently. - Customer Management: Maintain a database of customers, including their contact information and order history. - Employee Management: Manage employee records, including roles, schedules, and performance evaluations. - Reporting: Generate reports on sales, revenue, and other key metrics to aid in decision-making. - Authentication and Authorization: Secure access to the system with user authentication and role-based access control. ### Technologies Used: - HTML - CSS - JavaScript ### How to Run: 1. Clone the repository: git clone https://github.com/anurag87204/Restaurant.git 2. Import the project into your preferred Java IDE. 3. Set up MySQL database and configure the connection properties in the application. 4. Run the application. ### Contributors: - Anurag (GitHub: [anurag87204](https://github.com/anurag87204)) ### License: This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Resto web site Demo page
css,demo,html,javascript
2024-02-03T03:36:05Z
2024-02-10T06:13:22Z
null
1
0
2
0
0
4
null
null
CSS
xdcode2/course-website
main
# Responsive Landing Page Course Website Build a Responsive Landing Page Course Website using React JS & TailwindCSS ## [View Demo](https://coursat-xdcode.netlify.app/ "coursat website") ![Course Website](./public/Course%20Website.png) ## 🛠️ Tools - React JS - TailwindCSS - Framer Motion - Swiper JS ## 🚀 Getting Started To get started follow these steps: #### Cloning the Repository Using CLI ```bash git clone https://github.com/xdcode2/course-website.git ``` **\*\*_Ensure you have installed [Git](https://git-scm.com) on your machine._** or using GitHub: - Go to the project [repository](https://github.com/xdcode2/course-website) on my GitHub page - Click on the green button on the top 👆 - Click Download ZIP #### Installation Install the project dependencies using npm: ```bash npm install ``` **\*\*_Ensure you have installed [NodeJS](https://nodejs.org/en) on your machine._** #### Running the Project ```bash npm run dev ``` **\*\*_This project uses [Vite](https://vitejs.dev)._** ## 💻 Code Snippets `tailwindcss.config.js`: ```js /** @type {import('tailwindcss').Config} */ export default { content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], theme: { screens: { sm: "640px", md: "768px", lg: "992px", xl: "1200px", }, container: { center: true, padding: "1rem", }, fontFamily: { lato: ["Lato", "sans-serif"], }, extend: { fontSize: { h1: [ "clamp(2.25rem, 4vw, 3.375rem)", { lineHeight: "normal", fontWeight: "700", }, ], h2: [ "clamp(2rem, 4vw, 2.75rem)", { lineHeight: "normal", fontWeight: "700", }, ], h3: [ "clamp(1.75rem, 4vw, 2.25rem)", { lineHeight: "normal", fontWeight: "700", }, ], }, colors: { primary: { 10: "#535c11", 20: "#75811f", 30: "#98a72c", 40: "#bacc3a", 50: "#ddf247", 60: "#e4f56c", 70: "#ebf791", 80: "#f1fab5", 90: "#f8fcda", }, gray: { 10: "#292c32", 20: "#393e45", 30: "#4a4f59", 40: "#5a616c", 50: "#6a7280", 60: "#7d8491", 70: "#9096a1", 80: "#a4a9b2", 90: "#b7bbc2", }, }, borderRadius: { "4xl": "32px", }, }, }, plugins: [], }; ``` `src/index.css`: ```css @font-face { font-family: "Lato"; src: url("../font/Lato-Regular.ttf"), format("truetype"); font-weight: 400; } @font-face { font-family: "Lato"; src: url("../font/Lato-Medium.ttf"), format("truetype"); font-weight: 500; } @font-face { font-family: "Lato"; src: url("../font/Lato-Semibold.ttf"), format("truetype"); font-weight: 600; } @font-face { font-family: "Lato"; src: url("../font/Lato-Bold.ttf"), format("truetype"); font-weight: 700; } @tailwind base; @tailwind components; @tailwind utilities; @layer base { * { @apply p-0 m-0 box-border scroll-smooth; } section { @apply relative min-h-screen py-[70px] overflow-hidden; } img { @apply w-full h-full object-cover select-none; } } @layer components { .link { @apply outline-none font-medium text-lg text-gray-10 cursor-pointer transition-colors hover:text-primary-40; } .btn { @apply px-6 rounded-full w-fit h-14 font-medium text-lg transition-colors duration-300; } .btn-primary { @apply rounded-full bg-primary-50 text-gray-10 hover:bg-primary-60 active:bg-primary-70; } .btn-outline { @apply bg-transparent border border-solid border-gray-10 text-gray-10 hover:bg-gray-10 hover:text-white; } .section-title-before { @apply before:content-[url("./assets/heading-left.svg")] before:absolute before:-translate-x-full before:-translate-y-2/4; } .section-title-after { @apply after:content-[url("./assets/heading-right.svg")] after:absolute after:-translate-y-1/4; } .footer-col { @apply flex flex-col gap-y-4 basis-[250px]; } .social-icon { @apply p-1.5 bg-gray-30 rounded-full text-white; } .footer-heading { @apply text-xl font-semibold text-white; } .footer-link { @apply w-fit text-lg !leading-[normal] text-gray-80 hover:text-primary-50; } } ::-webkit-scrollbar { width: 10px; height: 8px; } ::-webkit-scrollbar-thumb { background-color: theme(colors.gray.40); border-radius: 100vmax; border: 2px solid transparent; background-clip: content-box; } .header__menu-icon span { display: block; position: absolute; width: 20px; height: 2px; background-color: #292c32; transition: all 200ms ease; } .header__menu-icon span:nth-child(1) { top: 0; left: 0; transform: translate(0); } .header__menu-icon span:nth-child(2) { top: 7px; left: 0; transform: translate(8px); } .header__menu-icon span:nth-child(3) { top: 14px; left: 0; transform: translate(4px); } .header__menu-icon:hover:not(.active) span:nth-child(1) { transform: translate(4px); } .header__menu-icon:hover:not(.active) span:nth-child(2) { transform: translate(0); } .header__menu-icon:hover:not(.active) span:nth-child(3) { transform: translate(8px); } .header__menu-icon.active span:nth-child(1) { top: 7px; transform: translate(0) rotate(225deg); } .header__menu-icon.active span:nth-child(2) { top: 7px; transform: translate(20px); } .header__menu-icon.active span:nth-child(3) { top: 7px; transform: translate(0) rotate(135deg); } [data-difficulty="beginner"] { --bg: #049905; --bg-alpha-35: rgba(4, 154, 4, 0.35); } [data-difficulty="intermediate"] { --bg: #f89e00; --bg-alpha-35: rgba(250, 158, 0, 0.35); } [data-difficulty="advanced"] { --bg: #f3381d; --bg-alpha-35: rgba(242, 57, 28, 0.35); } ``` `.eslintrc.cjs`: ```js module.exports = { root: true, env: { browser: true, es2020: true }, extends: ["plugin:react/jsx-runtime", "plugin:react-hooks/recommended"], ignorePatterns: ["dist", ".eslintrc.cjs"], parserOptions: { ecmaVersion: "latest", sourceType: "module" }, settings: { react: { version: "18.2" } }, plugins: ["react-refresh"], rules: { "react-refresh/only-export-components": ["warn", { allowConstantExport: true }], }, }; ``` --- [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/J3J1NMYT7) Hey bro please don't forget to subscribe to [my channel](https://www.youtube.com/@_xdcode_ "XD Code") 😊😊.
Build a Responsive Landing Page Course Website in React JS
javascript,reactjs,uiuxdesigner,xdcode
2024-02-11T05:48:25Z
2024-02-11T05:51:00Z
null
2
0
1
0
1
4
null
null
JavaScript
tderflinger/libretranslate-ts
main
# libretranslate-ts A simple and easy to use TypeScript library for [LibreTranslate](https://libretranslate.com/). Can also be used with JavaScript. LibreTranslate is a free and open source translation application that also offers an API. This library connects to the API. If you are looking for instructions on how to deploy your own LibreTranslate instance you can find them [here](https://github.com/LibreTranslate/LibreTranslate). ## Installation ```bash npm i libretranslate-ts --save ``` ## Example Usage In this example, I connect to a LibreTranslate instance on `localhost:5000`. When your instance is different, you need to change this. app.mjs ```typescript import { libreTranslate } from "libretranslate-ts"; const LIBRETRANSLATE_ENDPOINT = "http://localhost:5000"; libreTranslate.setApiEndpoint(LIBRETRANSLATE_ENDPOINT); libreTranslate.setApiKey(""); const resultDetect = await libreTranslate.detect("Hola, cómo estás?"); console.log("Detected language: ", resultDetect); const result = await libreTranslate.translate( "There is a tiger in the house nearby the barn.", "en", "es" ); if (result?.status >= 400) { console.log("Status: ", result?.status); console.error("Error: ", result?.error); process.exit(1); } console.log(result?.translatedText); ``` ## Bugs Please file any issues and enhancement ideas under the "Issues" tab. ## Roadmap - Add possibility to translate whole files ## License MIT License
TypeScript library for the LibreTranslate API. With TypeScript type definitions. Can also be used with JavaScript.
api,libretranslate,sdk,translation,javascript,typescript
2024-02-12T16:24:45Z
2024-02-17T17:49:43Z
null
2
0
7
0
0
4
null
null
TypeScript
elmouradiaminedev/diagonjs
main
<p align="center"> <picture> <img src="https://i.ibb.co/nbMS51q/Group-1.png" height="128"> </picture> <h1 align="center">Diagonjs</h1> </p> <div align="center"> [![npm version](https://img.shields.io/npm/v/diagonjs)](https://www.npmjs.com/package/diagonjs) [![npm downloads](https://img.shields.io/npm/dm/diagonjs)](https://www.npmjs.com/package/diagonjs) ![CI status](https://github.com/elmouradiaminedev/diagonjs/actions/workflows/ci.yml/badge.svg) [![codecov](https://codecov.io/gh/elmouradiaminedev/diagonjs/graph/badge.svg?token=TYVEPNWRD3)](https://codecov.io/gh/elmouradiaminedev/diagonjs) [![TypeScript](https://badgen.net/badge/icon/TypeScript?icon=typescript&label)](https://www.typescriptlang.org/) </div> Craft captivating ASCII art from your Markdown expression with ease, powered by [Diagon](https://github.com/ArthurSonzogni/Diagon). ## 🚀 Features - Supports Math, Sequence, Tree, Table, Grammars, Frame, and GraphDAG expressions. - Flexible translation with customizable options including styles like Unicode, ASCII, Latex, and more. - Support for both Node.js and browser environments. - Compatible with CommonJS (CJS) and ECMAScript Module (ESM) environments. - Fully typed for enhanced developer experience. ## ⚙️ Install Install it locally in your project folder: ```bash npm i diagonjs # Or Yarn yarn add diagonjs # Or pnpm pnpm add diagonjs ``` ## 📖 Usage ### Initialize diagonjs To initialize diagon.js in your application: ```js import Diagon from "diagonjs"; const diagon = await Diagon.init(); ``` ### Use a translator Once Diagon.js is initialized, you can use its translators to interpret and transform expressions. Below is an example using the math expression translator: ```js diagon.translate.math("f(x) = 1 + x / (1 + x)", { style: "Unicode" }); // x // f(x) = 1 + ───── // 1 + x ``` And here's an example employing the sequence diagram translator: ```js diagon.translate.sequence( "Alice -> Bob: Hello Bob!\nAlice <- Bob: Hello Alice!", { asciiOnly: false }, ); // ┌─────┐ ┌───┐ // │Alice│ │Bob│ // └──┬──┘ └─┬─┘ // │ │ // │ Hello Bob! │ // │───────────>│ // │ │ // │Hello Alice!│ // │<───────────│ // ┌──┴──┐ ┌─┴─┐ // │Alice│ │Bob│ // └─────┘ └───┘ ``` ## 📚 Documentation - Dive deeper into the source code by exploring the [translators](https://github.com/elmouradiaminedev/diagonjs/blob/main/src/translators/index.ts) - Find practical integrations with express, react and more in the [examples section](https://github.com/elmouradiaminedev/diagonjs/tree/main/examples). - Explore the [test section](https://github.com/ArthurSonzogni/Diagon/tree/main/test) in the Diagon C++ repository. It contains input and output samples. - Experience Diagonjs in action using the [online interpreter](https://arthursonzogni.com/Diagon/). ## 💖 Thanks This project has been possible thanks to these great projects: - [Diagon](https://github.com/ArthurSonzogni/Diagon) - [Emscripten](https://github.com/emscripten-core/emscripten) - [WebAssembly](https://webassembly.org/) - [Node](https://github.com/nodejs/node/tree/main) ## License This project is licensed under the [MIT](https://github.com/elmouradiaminedev/diagonjs/blob/main/LICENSE) License.
:fire: Craft captivating ASCII art from your Markdown expression
ascii,interpreter,javascript,latex,node,npm,typescript,unicode,diagon
2024-02-10T19:04:42Z
2024-02-24T01:03:30Z
2024-02-13T01:57:10Z
2
20
83
1
0
4
null
MIT
TypeScript
In-tech-gration-Cohort-0x02/vartable-js
main
# vartable-js Project help students understand using VAR, LET, CONST in JavaScript. ## Special function - small tooltips - console output for code examples - examples loaded from file in json format - themes for code highlighters (prism.js, highlight.js) - jokes and fun ## Using Use [this page](https://in-tech-gration-cohort-0x02.github.io/vartable-js/) on GitHub Pages ## Licences Free for use `<coded> intechgration 2024</coded>`
Interactive table for learn using var, let, const in JS
css,html,javascript
2024-01-30T07:44:27Z
2024-01-30T08:36:21Z
null
8
0
4
0
0
4
null
null
HTML
ignashevich/circular-dependency-plugin-async
main
[![npm version](https://badge.fury.io/js/circular-dependency-plugin-async.svg)](https://badge.fury.io/js/circular-dependency-plugin-async) ## Circular Dependency Plugin Async Detect modules with circular dependencies asynchronously when bundling with webpack. ### Basic Usage > [!IMPORTANT] > Async mode doesn't fail the webpack build so if you want your build fail during production build set `isAsync: false` ```js // webpack.config.js const CircularDependencyPluginAsync = require("circular-dependency-plugin-async"); module.exports = { plugins: [ new CircularDependencyPlugin({ // Path to the index file of your application indexFilePath: "./src/index.tsx", // Sync/async mode flag isAsync: true, // optional // Threshold for amount of circular dependecies to trigger the error threshold: 1, // optional }), ], }; ```
Detect modules with circular dependencies asynchronously when bundling with webpack.
asynchronous,circular-dependencies,webpack,javascript,plugin
2024-01-29T18:55:41Z
2024-02-11T23:13:48Z
null
1
0
16
0
0
4
null
MIT
JavaScript
kazcfz/Copy-n-Paste
main
<p align="center"><img src="https://i.imgur.com/M9eJymK.png" alt="Paste Image Uploader" width="75%" height="75%"></p> <p align="center"><a href="https://chromewebstore.google.com/detail/bnmdedmhngbeofnafobjmcihealecgnf"><img src="https://storage.googleapis.com/web-dev-uploads/image/WlD8wC6g8khYWPJUsQceQkhXSlv1/iNEddTyWiMfLSwFD6qGq.png" alt="Get Copy-n-Paste for Chromium"></a></p> <br><br><br><br> Copy-n-Paste is a lightweight Chromium extension designed to simplify the process of uploading images from your clipboard directly to webpages, eliminating the prior need to save them as files. <p align="center"><img src="https://i.imgur.com/TXV2SuL.png" alt="Screenshot Preview" width="49%" height="49%"> <img src="https://i.imgur.com/jqB4WFe.png" alt="Screenshot Preview" width="49%" height="49%"></p> <br><br> ## Features - **Lightweight** – Less than 0.02MB! - **Clean & Simple GUI** – 1 interface only! - **Screenshot upload** – Simply snap and upload! - **Copy and paste** – Copy images online! - **Drag and drop** – Drag files directly from your computer! - **Wide cross-site compatibility** – Works on popular websites (Facebook, Instagram, Twitter, YouTube, and more)! <br><br> ## Compatibility | Browser | Compatible? | | :------ | :---------: | | <sub>![](https://www.w3schools.com/images/compatible_chrome2020.png)</sub> Chrome | **✓** | | <sub>![](https://www.w3schools.com/images/compatible_edge2020.png)</sub> Edge | **✓** | | <sub>![](https://i.imgur.com/4aFSIAT.png)</sub> Brave | **✓** | | <sub>![](https://i.imgur.com/xAa2JH0.png)</sub> Vivaldi | **✓** | _Legend: **✓** Compatible, **⨉** Not compatible, **?** Untested_ <br><br> ## Getting Started (for developers/testers) 1. Download and extract source code 2. Visit the Extensions page - <sub>![](https://www.w3schools.com/images/compatible_chrome2020.png)</sub> `chrome://extensions` - <sub>![](https://www.w3schools.com/images/compatible_edge2020.png)</sub> `edge://extensions` 3. Enable 'Developer mode' 4. Select 'Load unpacked' 5. Select the extracted extension folder <br><br> ## Usage 1. Take a screenshot, or copy an image online 2. Select the file input element in a webpage 3. Select the previewed screenshot, or '+ Upload Image' to choose from storage, or drag a file over <br><br> ## Bugs and Feature requests Please first check for [existing and closed issues](https://github.com/kazcfz/Paste-Image-Uploader/issues?q=is%3Aissue).<br> If it's new, please [create a new issue](https://github.com/kazcfz/Paste-Image-Uploader/issues/new/choose).
Copy-n-Paste is a lightweight Chromium extension designed to simplify the process of uploading images from your clipboard directly to webpages, eliminating the prior need to save them as files.
chrome-extension,clipboard,copy-paste,javascript,chromium-extension,edge-extension,browser-extension,browser-extensions,chrome-extensions,chromium-extensions
2024-01-27T04:16:53Z
2024-03-25T15:00:08Z
2024-03-25T14:30:09Z
1
4
84
2
1
4
null
MIT
JavaScript
react18-tools/nextjs-themes-ultra
main
# Nextjs-Themes-Ultra [![test](https://github.com/react18-tools/nextjs-themes-ultra/actions/workflows/test.yml/badge.svg)](https://github.com/react18-tools/nextjs-themes-ultra/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/85f6447e649201924a2c/maintainability)](https://codeclimate.com/github/react18-tools/nextjs-themes-ultra/maintainability) [![codecov](https://codecov.io/gh/react18-tools/nextjs-themes-ultra/graph/badge.svg)](https://codecov.io/gh/react18-tools/nextjs-themes-ultra) [![Version](https://img.shields.io/npm/v/nthul.svg?colorB=green)](https://www.npmjs.com/package/nthul) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/d18m/nthul.svg)](https://www.npmjs.com/package/nthul) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/nthul) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/from-referrer/) 🤟 👉 [Unleash the Power of React Server Components](https://medium.com/javascript-in-plain-english/unleash-the-power-of-react-server-components-eb3fe7201231) > A canonical package with a longer and more descriptive name is also published - `nextjs-themes-ultra` ## Motivation I created `nextjs-themes` library to achieve functionality like `next-themes` with React Server Components. It worked well, however, I noticed issues with tree-shaking and also found that some functions that are rarely used can be removed or replaced to improve overall performance and readability. I will update the main library [`nextjs-themes`](https://github.com/react18-tools/nextjs-themes). However, it requires ensuring minimal changes to the existing APIs. And thus I created a new library, which has the potential to be a better alternative in most cases. ## Features ✅ Perfect dark mode in 2 lines of code ✅ Works with Tailwind CSS ✅ Fully Treeshakable (`import from nthul/client/theme-switcher`) ✅ Designed for excellence ✅ Full TypeScript Support ✅ Unleash the full power of React18 Server components ✅ System setting with prefers-color-scheme ✅ Themed browser UI with color-scheme ✅ Support for Next.js 13 & Next.js 14 `appDir` ✅ No flash on load (for all - SSG, SSR, ISG, Server Components) ✅ Sync theme across tabs and windows - can opt-out by passing dontSync to ThemeSwitcher ✅ Apply custom transition when changing themes ✅ Force pages to specific themes - requires assigning className (detailed techniques comming soon...) ✅ Manipulate theme via `useTheme` hook ✅ Documented with [Typedoc](https://react18-tools.github.io/nextjs-themes-ultra) ([Docs](https://react18-tools.github.io/nextjs-themes-ultra)) ✅ Use combinations of `th-` and `dark` or `light` classes for dark/light variants of themes ✅ Automatically avoids storing cookies when not using the corresponding `ServerTarget` ✅ Works with all build systems/tools/frameworks for React18 > Feel free to [request](https://github.com/react18-tools/nextjs-themes-ultra/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=) or [discuss](https://github.com/react18-tools/nextjs-themes-ultra/discussions) new features or [report bugs](https://github.com/react18-tools/nextjs-themes-ultra/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=). ## Install > A canonical package with a longer and more descriptive name is also published - `nextjs-themes-ultra` ```bash $ pnpm add nthul ``` or ```bash $ npm install nthul ``` or ```bash $ yarn add nthul ``` ## Want Lite Version? [![npm bundle size](https://img.shields.io/bundlephobia/minzip/nthul-lite)](https://www.npmjs.com/package/nthul-lite) [![Version](https://img.shields.io/npm/v/nthul-lite.svg?colorB=green)](https://www.npmjs.com/package/nthul-lite) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/nthul-lite.svg)](https://www.npmjs.com/package/nthul-lite) ```bash $ pnpm add nthul-lite ``` **or** ```bash $ npm install nthul-lite ``` **or** ```bash $ yarn add nthul-lite ``` > You need r18gs as a peer-dependency ## Usage > Please explore `examples` and `packages/shared-ui` for working examples. (updates coming soon...) ### SPA (e.g., Vite, CRA) and Next.js pages directory (No server components) The best way is to add a [Custom `App`](https://nextjs.org/docs/advanced-features/custom-app) to use by modifying `_app` as follows: Adding dark mode support takes 2 lines of code: ```js import { ThemeSwitcher, ColorSwitch } from "nthul/client"; // for better tree-shaking function MyApp({ Component, pageProps }) { return ( <> <ThemeSwitcher /> {/* to add a switch */} <header> <ColorSwitch /> </header> <Component {...pageProps} /> </> ); } export default MyApp; ``` ⚡🎉Boom! Just a couple of lines and your dark mode is ready! That too with an awesome color switch for user preferred settings. Check out examples for advanced usage. > For `vite` or any other build tool you can find a similar root component. E.g., <App /> component in `CRA` and `vite`. ### With Next.js `app` router (Server Components) > If your app is mostly serving static content, you do not want the overhead of SSR. > > When using this approach, you need to use CSS general sibling Combinator (~) to make sure your themed CSS is properly applied. See (HTML & CSS)[#html--css]. Update your `app/layout.jsx` to add `ThemeSwitcher`, and `ServerTarget`. `ServerTarget` is required to avoid a flash of un-themed content on reload. ```tsx // app/layout.jsx import { ThemeSwitcher } from "nthul/client/theme-switcher"; // for better tree-shaking import { ServerTarget } from "nthul/server/nextjs"; export default function Layout({ children }) { return ( <html lang="en"> <head /> <body> /** use ServerTarget as first element inside body */ <ServerTarget /> <ThemeSwitcher /> {children} </body> </html> ); } ``` ⚡🎉 Woohoo! You just added multiple theme and color-scheme modes and you can also use Server Component! Isn't that awesome? ### ColorSwitch An elegant color-switch to toggle coloe-schemes ("dark" | "light" | "system"). ```tsx <ColorSwitch /> ``` ### HTML & CSS That's it, your Next.js app fully supports dark mode, including System preference with `prefers-color-scheme`. The theme is also immediately synced between tabs. By default, `nthul` modifies the className on the `html` element, which you can easily use to style your app: ```css :root { /* Your default theme */ --background: white; --foreground: black; } .dark { --background: black; --foreground: white; } /* for custom themes */ .th-theme1 { --background: red; --foreground: yellow; } /* for custom theme with dark and light variants */ .dark.th-theme2 { --background: blue; --foreground: white; } .light.th-theme2 { --background: white; --foreground: blue; } /* for scoped containers add .nth-scoped call as well - required only when using containerised themes. */ .nth-scoped.th-.dark { /* use th- to make sure outer theme is not applied to container with no theme */ ... } .nth-scoped.th-theme.dark { ... } ``` Also see [Example CSS file](https://github.com/react18-tools/nextjs-themes-ultra/blob/main/packages/shared-ui/src/globals.css). #### When using `ServerTarget` when using `ServerTarget`, you need to use CSS general sibling Combinator (~) as `ServerTarget` is not wrapping your app. > Replace `.selector` with a combination of selectors from the description above. ```css /* for the target element itself, e.g., the html tag. in most cases, this is inherited by all child elements. */ .selector, /* for forcing to the child elements. */ .selector *, /* when using ServerTarget */ .selector ~ *, // for all following siblings .selector ~ * * // for all the children of the following siblings { // ...your styles } ``` Please note that we have not added a comma (',') after the last selector. Without comments, it should look like following. ```css .selector, .selector *, .selector ~ *, .selector ~ * * { --th-variable: value; } ``` We encourage you to use this pattern for defining your theme variables in CSS to avoid any unwanted overrides. ## Images You can also show different images based on the current theme. ```jsx import Image from "next/image"; import { useTheme } from "nthul/hooks"; function ThemedImage() { const { resolvedColorScheme } = useTheme(); let src; switch (resolvedColorScheme) { case "light": src = "/light.png"; break; case "dark": src = "/dark.png"; break; default: src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"; break; } return <Image src={src} width={400} height={400} />; } export default ThemedImage; ``` ### useTheme In case your components need to know the current theme and be able to change it. The `useTheme` hook provides theme information: ```js import { useTheme } from "nthul"; const ThemeChanger = () => { const { theme, setTheme } = useTheme(); return ( <div> The current theme is: {theme} <button onClick={() => setTheme("light")}>Light Mode</button> <button onClick={() => setTheme("dark")}>Dark Mode</button> </div> ); }; ``` `useTheme` hook will return following object. ```ts interface UseTheme { theme: string; colorSchemePreference: "dark" | "light" | "system"; systemColorScheme: "dark" | "light"; resolvedColorScheme: "dark" | "light"; setColorSchemePreference: (colorSchemePreference: ColorSchemePreference) => void; setTheme: (theme: string) => void; } ``` ## Force per page theme and color-scheme We have not added any components or hooks for forcing `theme` and `color-scheme` per page or per element basis. As this is a rarely used scenario. However, you can acheive this by applying appropreate calssNames. ```tsx // force a theme for the page export default function Page() { return <div className="dark nth-scoped th-theme1">...</div>; } ``` > We are open to listening your feedback - [Discussions](https://github.com/react18-tools/nextjs-themes-ultra/discussions) ### With Styled Components and any CSS-in-JS Next Themes is completely CSS independent, it will work with any library. For example, with Styled Components you just need to `createGlobalStyle` in your custom App: ```js // pages/_app.js import { createGlobalStyle } from "styled-components"; import { ThemeSwitcher } from "nthul"; // Your themeing variables const GlobalStyle = createGlobalStyle` :root { --fg: #000; --bg: #fff; } [data-theme="dark"] { --fg: #fff; --bg: #000; } `; function MyApp({ Component, pageProps }) { return ( <> <GlobalStyle /> <ThemeSwitcher /> <Component {...pageProps} /> </> ); } ``` ### With Tailwind In your `tailwind.config.js`, set the dark mode property to class: ```js // tailwind.config.js module.exports = { darkMode: "class", }; ``` ⚡🎉Boom! You are ready to use darkTheme in tailwind. > Caution! Your class must be set to `"dark"`, which is the default value we have used for this library. Tailwind, as of now, requires that class name must be `"dark"` for dark-theme. That's it! Now you can use dark-mode specific classes: ```tsx <h1 className="text-black dark:text-white"> ``` # Contributing ## What's inside? ### Utilities This Turborepo template includes pre-configured tools: - [TypeScript](https://www.typescriptlang.org/) for static type checking - [ESLint](https://eslint.org/) for code linting - [Prettier](https://prettier.io) for code formatting - Plop based code generator for scaffolding new components - Automatically rebrand this template to match your repo name ### Apps and Packages This Turborepo includes the following packages/examples/lib: - `nextjs`: a [Next.js](https://nextjs.org/) app - `vite`: a [Vite.js](https://vitest.dev) app - `fork-me`: a React component library shared by both `Next.js` and `Vite` examples - `eslint-config-custom`: ESLint configurations (includes `eslint-config-next` and `eslint-config-prettier`) - `tsconfig`: `tsconfig.json`s used throughout the monorepo Each package/example is 100% [TypeScript](https://www.typescriptlang.org/). ### Build To build all apps and packages, run the following command: ``` cd nthul pnpm build ``` ### Develop To develop all apps and packages, run the following command: ``` cd nthul pnpm dev ``` ### 🤩 Don't forger to start [this repo](https://github.com/react18-tools/nextjs-themes-ultra)! Want hands-on course for getting started with Turborepo? Check out [React and Next.js with TypeScript](https://mayank-chaudhari.vercel.app/courses/react-and-next-js-with-typescript) and [The Game of Chess with Next.js, React and TypeScrypt](https://www.udemy.com/course/game-of-chess-with-nextjs-react-and-typescrypt/?referralCode=851A28F10B254A8523FE) ![Repo Stats](https://repobeats.axiom.co/api/embed/85eec5cd9a0ede65ac366f834ada1a170ef775c8.svg "Repobeats analytics image") ## License Licensed as MIT open source. <hr /> <p align="center" style="text-align:center">with 💖 by <a href="https://mayank-chaudhari.vercel.app" target="_blank">Mayank Kumar Chaudhari</a></p>
🤟 👉 Theme with confidence and [Unleash the Power of React Server Components](https://medium.com/javascript-in-plain-english/unleash-the-power-of-react-server-components-eb3fe7201231)
nextjs,nextjs13,nextjs14,react18,theme,frontend,javascript,nodejs
2024-02-22T04:26:36Z
2024-05-23T16:10:03Z
2024-02-28T04:17:54Z
1
9
367
0
1
4
null
MIT
TypeScript
anurag87204/GitHub-Finders
main
# GitHub Finders GitHub Finders is a web application that allows users to search for GitHub users and view their profiles and repositories. It provides a simple and intuitive interface for discovering GitHub users and exploring their projects. ## Features: - User Search: Easily search for GitHub users by their username. - User Profile: View detailed information about a specific GitHub user, including their bio, location, followers, following, and public repositories. - Repository Search: Search for repositories owned by a GitHub user. - Repository Details: View detailed information about a specific repository, including its description, stars, forks, and programming languages used. ## Technologies Used: - Frontend: HTML, CSS, JavaScript - API: GitHub API ## How to Use: 1. Enter a GitHub username in the search bar to get started. ## License: This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. --- Feel free to customize and expand upon this README to better suit your project's specifics!
GitHub finders
css,html,javascript
2024-02-09T10:27:35Z
2024-02-10T05:39:44Z
null
1
0
3
0
0
4
null
null
CSS
lanterndata/lantern-js
main
# lantern-js [lantern](https://github.com/lanterndata/lantern) support for JavaScript/Typescript ORMs. [![Test Status](https://github.com/lanterndata/lantern-js/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/lanterndata/lantern-js/actions) [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) ## Installation Run: ```sh npm install lanterndata ``` Observe the guidelines for your ORM database library. - [Knex](/src/knex/README.md) - [Kysely](/src/kysely/README.md) - [Sequelize](/src/sequelize/README.md) - [TypeORM](/src/typeorm/README.md) - [Mikro-ORM](/src/mikro-orm/README.md) - [Objection.js](/src/objection/README.md) - [Drizzle-ORM](/src/drizzle-orm/README.md)
JavaScript/Typescript ORMs for Lantern Vector Database
database,javascript,postgres,postgresql,sequelize,typescript,vector,drizzle-orm,knex
2024-02-05T09:23:07Z
2024-04-08T22:52:28Z
null
2
41
56
0
0
4
null
MIT
JavaScript
adlauncher-team/adlauncher
main
# ADLAUNCHER | MINECRAFT LAUNCHER WITH ELECTRON AND ADLAUNCHER-CORE ADLauncher is a Minecraft launcher with a graphical interface created using Electron and ADLauncher-core. This project has been carried out with the aim of providing a way to play Minecraft for free without using launchers that may contain viruses in your system. This is the first version of the launcher and it will be updated over time, adding new features, fixing bugs, and accepting community suggestions. Its usage is simple, and the interface is designed to be user-friendly for all audiences. Remember that we do not support video game piracy. Support their original creators and whenever you can, purchase the original video game without a second thought. --- ## Usage ### Installation To download the launcher, go to [Downloads](https://github.com/dani-adbg/adlauncher/releases) and choose the file you need. If you don't want to use the installer, download the `.zip` file and extract it wherever you want. If the program doesn't find `Java`, it will download it automatically when started for the first time. ### Download Version Navigate to the `Download Version` tab and type in the version you want to download. ### Play To play, simply click the `Play` button. The program will minimize, and the selected version of Minecraft will start running. ### Change Settings You can go to the `Settings` tab to change certain settings, such as the Minecraft folder to be used and the amount of RAM to be allocated (remember not to select invalid values). Then, click the button to save the settings. --- ## Support If you need help, have any suggestions, or found a bug, join our Discord and let us know immediately. [![Discord](https://dcbadge.vercel.app/api/server/a93w5NpBR9)](https://discord.gg/a93w5NpBR9) [![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?style=for-the-badge&logo=YouTube&logoColor=white)](https://www.youtube.com/@dani_adbg) --- Project developed by: `dani_adbg`
Minecraft Launcher with Node.js
javascript,adlauncher
2024-03-06T02:11:54Z
2024-04-11T23:33:36Z
2024-04-11T23:29:37Z
2
4
33
0
0
4
null
MIT
JavaScript
druvkotwani/Startup-Samachar
main
# Startup Samachar Chrome extension and website offering daily news updates on Indian startups, serving as a central hub for entrepreneurs. ![screencapture-startup-samachar-vercel-app-2024-02-06-17_07_14](https://github.com/druvkotwani/Startup-Samachar/assets/96691139/0a2b9e09-c05e-4fa5-af34-d545af9b9e55) ## Languages/Tools <a href=""> <img src="https://skillicons.dev/icons?i=tailwindcss,js,react,firebase,nodejs,vercel" /> </a> ## 👩🏽‍💻 Demo Check out the website: - [Extension](https://chromewebstore.google.com/detail/ghanekeihcifbacjpfinkgmokidibmfn) - [Website](https://startupsamachar.tech/) ## 🛠️ Installation Steps ### 1. Fork the project: - [Fork](https://github.com/druvkotwani/Startup-Samachar) the project. Click on the <a href="https://github.com/druvkotwani/Startup-Samachar/fork"><img src="https://i.imgur.com/G4z1kEe.png" height="15" width="15"></a> icon in the top right to get started. ### 2. Create a New Branch: - On your new repository's page, click the gray `main` button in the upper left to reveal a dropdown menu. - Enter the name of your new branch in the text box. (Branch names usually make a reference to what is being changed. Example: `FixMargin`). - Click on `Create branch <new branch name>` and this will automatically take you to your new branch. You can make edits on the main branch, but this may cause issues down the line. Best practice is to create a new branch for each separate issue you work on. That way, your `main` branch remains in sync with `startup-samachar` `main` branch. ### 3. Edit: - Do the desired changes, you want. ### 4. Raise a Pull Request: - And finally, create a [Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)! - Great job! ## 🚀 Running Frontend To run locally, just run the following commands to download node modules and serve the website locally. ```bash npm i ``` ```bash npm run dev ``` <hr/> ## Drop a ⭐ if you like this project
Chrome extension and website offering daily news updates on Indian startups, serving as a central hub for entrepreneurs.
contributions-welcome,firebase,googlesummerofcode,hacktoberfest,hacktoberfest-accepted,nextui,open-source,personal-project,reactjs,vercel
2024-01-28T20:03:13Z
2024-02-10T05:16:03Z
null
1
3
73
0
0
4
null
null
JavaScript
rajatt95/TestAutomationFramework_YT_Rajat_API_Playwright_JS
main
<!-- #/** # * @author Rajat Verma # * Email: rajatvermaa95@gmail.com # * GitHub Profile: https://github.com/rajatt95 # * GitHub Page: https://rajatt95.github.io/ # * LinkedIn: https://www.linkedin.com/in/rajatt95/ # * Topmate: https://topmate.io/rajatt95 # * Telegram: https://t.me/rajatt95 # * Instagram: https://www.instagram.com/rajattvermaa95/ # * YouTube: https://www.youtube.com/@rajatt95 # * WhatsApp Community: https://chat.whatsapp.com/DVRP0ViD0YwELUKF2XMJHy # * WhatsApp Channel: https://whatsapp.com/channel/0029Va9XXMhJ93waOU5Xer3r # */ #/***************************************************/ --> --- # 💻 Test Automation Framework | API [![Playwright](https://img.shields.io/badge/Playwright-34495E?style=for-the-badge&logo=playwright&logoColor=white)](https://playwright.dev/) [![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black)](https://js.org/index.html) [![VS Code](https://img.shields.io/badge/VS_Code-007ACC?style=for-the-badge&logo=visual-studio-code&logoColor=white)](https://code.visualstudio.com/) [![Playwright HTML Reporter](https://img.shields.io/badge/Playwright%20HTML%20Reporter-<COLOR>?style=for-the-badge&logo=playwright&logoColor=white)](https://www.npmjs.com/package/playwright-html-reporter) [![GitHub Actions](https://img.shields.io/badge/GitHub%20Actions-2088FF?style=for-the-badge&logo=github-actions&logoColor=white)](https://github.com/features/actions) ## 📑 Table of Contents <!-- # - [Video Tutorial](#video-tutorial) --> - [Introduction](#introduction) - [Prerequisites](#prerequisites) - [Getting Started](#getting-started) - [Running Tests](#running-tests) - [Project Structure](#project-structure) - [Configuration](#configuration) - [Continuous Integration](#continuous-integration) - [Reporting](#reporting) - [Other Projects](#other-projects) - [Technical Documents](#technical-documents) - [Contacts](#contacts) ## 📖 Introduction This repository contains a Test Automation Framework built using Playwright and Javascript for automated testing of REST APIs. <!-- ## 🎥 Video Tutorial <a href="https://www.youtube.com/watch?v=g0nG6aPbpl4&list=PLrBBHmoBFxBUu9G7haETpa0B03H9GnfKX"> <img src="https://img.youtube.com/vi/g0nG6aPbpl4/0.jpg" alt="Test Automation Framework | WEB | Cypress + JS" width="200"> </a> Click on the image above to watch the tutorials. --> ## 🛠️ Prerequisites - [![Node.js](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge&logo=node.js&logoColor=white)](https://nodejs.org/) (v18.16.1 or higher recommended) - [![npm](https://img.shields.io/badge/npm-CB3837?style=for-the-badge&logo=npm&logoColor=white)](https://www.npmjs.com/) (v9.5.1 or higher recommended) ## ▶️ Getting Started 1. Clone the repository: ```bash git clone https://github.com/rajatt95/TestAutomationFramework_YT_Rajat_API_Playwright_JS.git ``` 2. Navigate to the project directory: ```bash cd TestAutomationFramework_YT_Rajat_API_Playwright_JS ``` 3. Install dependencies: ```bash npm install ``` ## 🚀 Running Tests ```bash npm run playwright:tests ``` ## 📁 Project Structure The tests follow a modular and maintainable structure: ``` |-- .github | |-- workflows | |-- 01_api_tests.yml | |-- 02_api_tests_select_env.yml |-- test-data | |-- login | |-- login-successful.json | |-- login-unsuccessful.json | |-- register | |-- register-successful.json | |-- register-unsuccessful.json | |-- users | |-- user_create.json | |-- user_update_patch.json | |-- user_update_put.json |-- tests-reqres | |-- login.spec.js | |-- register.spec.js | |-- users.spec.js |-- utils | |-- EndpointUtils.js | |-- RequestBodyUtils.js | |-- RequestUtils.js | |-- ResponseUtils.js | |-- VerificationUtils.js |-- .gitignore |-- package.json |-- playwright.config.js ``` - `playwright-report`: Contains the HTML report for tests (Logs are attached). - `test-data`: Contains external files (example: user create/update data) that can be used to mock data during tests. - `tests-reqres`: Contains the actual test files. You can organize your tests into subdirectories as needed. - `utils`: Contains the Utilities that provides methods for asserting different conditions on web elements, handling requests and responses. ## ⚙️ Configuration - Modify `playwright.config.js` for playwright configuration settings such as - `baseURL` - `testDir` - `reporter` ## 🔄 Continuous Integration This project is configured for CI using Github Actions. Check the configurations in `.github/workflows/*.yml`. - `01_api_tests.yml`: This workflow executes tests in pre-defined environment PROD. - `02_api_tests_select_env.yml`: This workflow will first ask User to select the environment (DEV / Pre-PROD / PROD) for tests execution. ## 📊 Reporting Playwright HTML report (Logs are attached) is stored in the `playwright-report` directory. ## 🔭 Other Projects - [![Java](https://img.shields.io/badge/Java-007396?style=for-the-badge&logo=java&logoColor=white)](https://github.com/stars/rajatt95/lists/programming-language-java) - [![Selenium](https://img.shields.io/badge/Selenium-43B02A?style=for-the-badge&logo=selenium&logoColor=white)](https://github.com/stars/rajatt95/lists/selenium-automation-frameworks) [![Appium](https://img.shields.io/badge/Appium-40C4FF?style=for-the-badge&logo=appium&logoColor=white)](https://github.com/stars/rajatt95/lists/appium-automation-frameworks) [![Rest Assured](https://img.shields.io/badge/Rest%20Assured-5B47A5?style=for-the-badge&logo=rest-assured&logoColor=white)](https://github.com/stars/rajatt95/lists/restassured-automation-framework) - [![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black)](https://github.com/stars/rajatt95/lists/programming-language-javascript) - [![Cypress](https://img.shields.io/badge/Cypress-17202C?style=for-the-badge&logo=cypress&logoColor=white)](https://github.com/stars/rajatt95/lists/cypress-automation-frameworks) [![Playwright](https://img.shields.io/badge/Playwright-34495E?style=for-the-badge&logo=playwright&logoColor=white)](https://github.com/stars/rajatt95/lists/playwright-automation-frameworks) - [![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://github.com/stars/rajatt95/lists/programming-language-python) - [![Requests](https://img.shields.io/badge/Requests-2CA5E0?style=for-the-badge&logo=python&logoColor=white)](https://github.com/stars/rajatt95/lists/requests-automation-framework) ## 📄 Technical Documents - [![Google Drive](https://img.shields.io/badge/Google%20Drive-4285F4?style=for-the-badge&logo=google-drive&logoColor=white)](https://drive.google.com/drive/folders/1tne9pZjgWvfrS0l9tVHs6k1jnQHpTLoA?usp=sharing) - [![GitHub Repository](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/rajatt95/Documents) ## 📧 Contacts - [![Email](https://img.shields.io/badge/Email-rajatvermaa95%40gmail.com-green)](mailto:rajatvermaa95@gmail.com) - [![GitHub Profile](https://img.shields.io/badge/GitHub-Profile-blue)](https://github.com/rajatt95) - [![GitHub Page](https://img.shields.io/badge/GitHub-Page-lightgrey)](https://rajatt95.github.io/) - [![LinkedIn](https://img.shields.io/badge/LinkedIn-Profile-blue)](https://www.linkedin.com/in/rajatt95) - [![Topmate](https://img.shields.io/badge/Topmate-Profile-red)](https://topmate.io/rajatt95) - [![Telegram](https://img.shields.io/badge/Telegram-Channel-blue)](https://t.me/rajatt95) - [![Instagram](https://img.shields.io/badge/Instagram-Profile-orange)](https://www.instagram.com/rajattvermaa95/) - [![YouTube](https://img.shields.io/badge/YouTube-Channel-red)](https://www.youtube.com/@rajatt95) - [![WhatsApp Community](https://img.shields.io/badge/WhatsApp-Community-brightgreen)](https://chat.whatsapp.com/LP20xMGvxnEL88GoB58bo1) - [![WhatsApp Channel](https://img.shields.io/badge/WhatsApp-Channel-brightgreen)](https://whatsapp.com/channel/0029Va9XXMhJ93waOU5Xer3r) Feel free to reach out if you have any questions, or suggestions, or just want to chat! Thanks for visiting my GitHub profile! 😊 <p align="left"> <img src="https://komarev.com/ghpvc/?username=rajatt95&label=Profile%20views&color=0e75b6&style=flat" alt="rajatt95" /> </p>
This project is a Test Automation Framework built using Playwright and Javascript for automated testing of REST APIs.
javascript,nodejs,crud-operations,custom-utilities,github-actions,playwright,playwright-html-report,rest-api,test-automation,vscode
2024-02-03T16:30:25Z
2024-02-28T02:13:40Z
null
1
0
22
0
0
4
null
null
JavaScript
Zigarov/betting-odds-visual-analytics
main
# Visual Analytics in Sports Betting: Analyzing and Comparing Odds using Dimensionality Reduction This study presents an innovative web application designed to apply visual analytics and dimensionality reduction techniques, specifically utilizing D3.js and Druid.js, to the analysis of sports betting odds. Through interactive data visualization, the application allows users to identify clusters within betting data, revealing odds with potentially high or low value relative to the actual probabilities of the outcomes. The results highlight the power of visual analytics in discovering advantageous betting opportunities, thereby assisting users in making informed decisions. ## Installation Execute the command `npm install` the first time, to install all the required libraries. ## Development Execute command `npm start` ## Distribution Execute command `npm run build`, to create the distribution version inside the _dist_ folder. In the distribution version all the files are minified and optimized for running in the browser.
This study presents an innovative web application designed to apply visual analytics and dimensionality reduction techniques, specifically utilizing D3.js and Druid.js, to the analysis of sports betting odds.
betting-odds,d3js,dimensionality-reduction,javascript,sports-analytics,visual-analytics,druidjs,bbox-analytics,parallel-coordinates-plot,data-visualization
2024-02-08T14:25:55Z
2024-03-05T20:17:48Z
null
1
0
52
0
0
4
null
null
JavaScript
liuyubing233/zhihu-custom-mobile
main
# 知乎修改器移动版 #### <span style="color: red;font-weight: bold;">注意:重写了首页和回答列表用来持续加载内容,不兼容其他内容处理脚本。</span> ![样式](https://pic.imgdb.cn/item/65ded2999f345e8d0394c926.png) **隐藏修改器唤起按钮仍可以在脚本菜单处打开** ![open](https://pic.imgdb.cn/item/65e186e49f345e8d03a4e38a.jpg) 基于 `知乎修改器` 制作[Github](https://github.com/liuyubing233/zhihu-custom/tree/main) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/423404-%E7%9F%A5%E4%B9%8E%E6%A0%B7%E5%BC%8F%E4%BF%AE%E6%94%B9%E5%99%A8)。 [更新日志](https://github.com/liuyubing233/zhihu-custom-mobile/blob/main/CHANGELOG.md) | [问题解答](https://github.com/liuyubing233/zhihu-custom-mobile/blob/main/Q%26A.md) [Github](https://github.com/liuyubing233/zhihu-custom-mobile/tree/main) | [GreasyFork](https://greasyfork.org/zh-CN/scripts/488508-%E7%9F%A5%E4%B9%8E%E4%BF%AE%E6%94%B9%E5%99%A8%E7%A7%BB%E5%8A%A8%E7%89%88-%E6%8C%81%E7%BB%AD%E6%9B%B4%E6%96%B0) ## 功能简介 2.X 版本的详细更新内容在 [更新日志](https://github.com/liuyubing233/zhihu-custom-mobile/blob/main/CHANGELOG.md)。 ### 回答可以查看全部回答和评论、文章可以查看全部评论 ![image](https://pic.imgdb.cn/item/660b787d9f345e8d03092bfc.png) ![image](https://pic.imgdb.cn/item/660b78849f345e8d03094e9a.png) ### 回答内容、文章、评论可直接点赞、反对,不需要跳转 APP ### 去除禁止复制的限制 ### 历史记录 默认缓存 500 条,点击可跳转。 ![历史记录](https://pic.imgdb.cn/item/65ded3bd9f345e8d0397ce76.png) ### 列表标题类别显示 ### 列表、问题详情、回答、文章内容置顶创建和修改时间。 ### 一键获取内容链接 ![preview](https://pic.imgdb.cn/item/65ded5209f345e8d039bcf33.png) ### 问题详情查看问题日志按钮 ![preview](https://pic.imgdb.cn/item/65ded5709f345e8d039cbef9.png) ### 颜色设置 同 `知乎修改器` ![background](https://pic.imgdb.cn/item/65ded5ca9f345e8d039db8f8.png) ### 隐藏模块 勾选隐藏对应模块 ![preview](https://pic.imgdb.cn/item/65ded62f9f345e8d039ee4df.png)
知乎修改器的移动版:列表标题类别显示功能设置,收起按钮悬浮设置,列表、问题详情、回答、文章内容置顶创建和修改时间设置,一键获取内容链接设置,问题详情添加查看问题日志按钮,自定义样式,隐藏模块,缓存列表和浏览历史记录等功能。
javascript,tampermonkey,typescript,zhihu
2024-02-04T08:12:39Z
2024-05-14T07:49:19Z
null
1
11
78
0
0
4
null
null
JavaScript
vikaskumaryadav13/CCBP-Timeline-App-ReactJS-cp38
main
In this project, let's build a **CCBP Timeline** by applying the concepts we have learned till now. ### Refer to the image below: <br/> <div style="text-align: center;"> <img src="https://assets.ccbp.in/frontend/content/react-js/ccbp-timeline-output.gif" alt="ccbp timeline output" style="max-width:70%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)"> </div> <br/> ### Design Files <details> <summary>Click to view</summary> - [Extra Small (Size < 576px) and Small (Size >= 576px)](https://assets.ccbp.in/frontend/content/react-js/ccbp-timeline-sm-output-v2.png) - [Medium (Size >= 768px), Large (Size >= 992px) and Extra Large (Size >= 1200px)](https://assets.ccbp.in/frontend/content/react-js/ccbp-timeline-lg-output.png) </details> ### Set Up Instructions <details> <summary>Click to view</summary> - Download dependencies by running `npm install` - Start up the app using `npm start` </details> ### Completion Instructions <details> <summary>Functionality to be added</summary> <br/> The app must have the following functionalities - Initially, the page should display the timeline items list using **Chrono custom rendering** based on the `categoryId` - The `TimelineView` component is provided with `timelineItemsList`. It consists of a list of timeline item objects with the following properties in each timeline item object - The `timelineItemObject` with `categoryId` as `COURSE` will have the following properties | Key | Data Type | | :---------: | :-------: | | id | String | | categoryId | String | | title | String | | courseTitle | String | | description | String | | duration | String | | tagsList | Array | - The `tagsListObject` will have the following properties | Key | Data Type | | :--: | :-------: | | id | String | | name | String | - The `timelineItemObject` with `categoryId` as `PROJECT` will have the following properties | Key | Data Type | | :----------: | :-------: | | id | String | | categoryId | String | | title | String | | projectTitle | String | | description | String | | imageUrl | String | | duration | String | | projectUrl | String | - If the value of the key `categoryId` in `timelineItemObject` is `PROJECT` then Project card should be rendered - The `ProjectTimelineCard` should consist of **Visit** link when a user clicks on it, then the page should be navigated to the respective project - The `ProjectTimelineCard` should consist of a **Calendar** icon with respective `duration` text - If the value of the key `categoryId` in `timelineItemObject` is `COURSE` then the Course card should be rendered - The `CourseTimelineCard` should consist of a **Clock** icon with respective `duration` text - Give the timeline items list data as a value to `items` prop for the `Chrono` component from **react-chrono**, so that the title will be displayed beside each card </details> <details> <summary>Components Structure</summary> <br/> <div style="text-align: center;"> <img src="https://assets.ccbp.in/frontend/content/react-js/ccbp-timeline-component-structure-breakdown.png" alt="component structure breakdown" style="max-width:100%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)"> </div> <br/> </details> <details> <summary>Implementation Files</summary> <br/> Use these files to complete the implementation: - `src/components/TimelineView/index.js` - `src/components/TimelineView/index.css` - `src/components/CourseTimelineCard/index.js` - `src/components/CourseTimelineCard/index.css` - `src/components/ProjectTimelineCard/index.js` - `src/components/ProjectTimelineCard/index.css` </details> ### Important Note <details> <summary>Click to view</summary> <br/> - To build this project, take a look at the <a href='https://learning.ccbp.in/frontend-development/course?c_id=2f4192f7-7495-49ca-a6ce-6b74005e25f1&s_id=a152928a-64cc-4697-936c-db2e3c4f2716&t_id=416f0cab-8425-413b-9157-c7b4d4ae4467' target="_blank">React Chrono</a> reading material **The following instructions are required for the tests to pass** - `AiFillClockCircle`, `AiFillCalendar` icons from `react-icons` should be used for **clock** and **calender** icons in card respectively </details> ### Resources <details> <summary>Colors</summary> <br/> <div style="background-color: #171f46; width: 150px; padding: 10px; color: white">Hex: #171f46</div> <div style="background-color: #1e293b; width: 150px; padding: 10px; color: white">Hex: #1e293b</div> <div style="background-color: #ffffff; width: 150px; padding: 10px; color: black">Hex: #ffffff</div> <div style="background-color: #0967d2; width: 150px; padding: 10px; color: white">Hex: #0967d2</div> <div style="background-color: #2b237c; width: 150px; padding: 10px; color: white">Hex: #2b237c</div> </details> <details> <summary>Font-families</summary> - Roboto </details> > ### _Things to Keep in Mind_ > > - All components you implement should go in the `src/components` directory. > - Don't change the component folder names as those are the files being imported into the tests. > - **Do not remove the pre-filled code** > - Want to quickly review some of the concepts you’ve been learning? Take a look at the Cheat Sheets.
🕑 Modern Timeline Component for React
chrono,horizontal-timeline,javascript,reactjs,timeline,vertical-timeline-react
2024-02-13T13:41:46Z
2024-02-13T13:43:12Z
null
1
0
1
0
0
4
null
null
JavaScript
SINAZZzz/coffee-shop
main
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dheereshagrwal/colored-icons@1.7.5/src/app/ci.min.css" /> # Coffee Shop <b> React + Vite + Ts + Mui </b> <h2> Created by </h2> <b>Sina Zinsaz</b> <br /> <a href='https://www.linkedin.com/in/sina-zinsaz-a71061244/'> <img src='https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white' /> </a> <a href='https://stackoverflow.com/users/20870363/sina-zinsaz'> <img src='https://img.shields.io/badge/Stack_Overflow-FE7A16?style=for-the-badge&logo=stack-overflow&logoColor=white' /> </a> <a href='https://dev.to/sinazinsaz'> <img src='https://img.shields.io/badge/dev.to-0A0A0A?style=for-the-badge&logo=devdotto&logoColor=white' /> </a> <a href='https://github.com/SINAZZzz'> <img src='https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white' /> </a> <h3> Ui/Ux </h3> <a href='https://www.figma.com/file/gs7MYXAQcNAfYW7xyoXcIV/Coffee-Shop-Mobile-App-Design-(Community)?type=design&mode=design&t=KeEgZ9O92Scycw0k-0'> <img src='https://img.shields.io/badge/Figma-F24E1E?style=for-the-badge&logo=figma&logoColor=white' /> </a> <h3> run project </h3> npm run dev
Coffee Shop
css,html,javascript,js,mui,react,router,ts,typescript
2024-02-18T18:08:05Z
2024-05-11T20:59:21Z
null
1
32
178
0
0
4
null
null
TypeScript
divyanshudhruv/divyanshudhruv.github.io
main
<p align="center"><img src="img/logo-1.svg" width="126px"></p> <h3 align="center"> <a href="https://divyanshudhruv.is-a.dev"><code>My Portfolio</code></a></h1> <br> <p align="center"><code>⚡ A self coded portfolio build with HTML, CSS and JavaScript </code> <br> <br> <br> <p align="center"> <img src="https://forthebadge.com/images/badges/built-with-love.svg" > &nbsp;&nbsp;&nbsp; <img src="https://forthebadge.com/images/badges/uses-html.svg"> &nbsp;&nbsp;&nbsp; <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/71079602/302105218-66b76d10-5662-44bb-bb6e-49084e985832.svg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240205%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240205T051055Z&X-Amz-Expires=300&X-Amz-Signature=366b771ec66b7450a5ae7e763439f76a771d4a4b8cabbc7382f9f51b1af616d0&X-Amz-SignedHeaders=host&actor_id=71079602&key_id=0&repo_id=471413093">&nbsp;&nbsp;&nbsp; <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/71079602/302171529-603e7f57-677c-4358-a0fa-dff91d30425a.svg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240205%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240205T051135Z&X-Amz-Expires=300&X-Amz-Signature=40f1e242b6c066a3ee6013a0b1d1ab3f968f62cfe19e9cb1b2987043a0888a9c&X-Amz-SignedHeaders=host&actor_id=71079602&key_id=0&repo_id=471413093">&nbsp;&nbsp;&nbsp; <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/71079602/302171138-bfd07a5a-96f2-4204-9249-4fe43bb991b4.svg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240205%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240205T051135Z&X-Amz-Expires=300&X-Amz-Signature=0f1d12250a114c717120e278d4fa2f131c4e85cc68c9dcf6675164ea1c0df19c&X-Amz-SignedHeaders=host&actor_id=71079602&key_id=0&repo_id=471413093"></p> <br> <br> ## 😅 TL;DR <br> > My personal portfolio <code><a href="https://divyanshudhruv.is-a.dev">divyanshudhruv.is-a.dev</a></code> which features some of my github **projects** as well as my **skills**. <br> ## 🌱 Technology <br> > **`1`** HTML > **`2`** CSS > **`3`** JavaScript > **`4`** Github <br> ## 🚀 Features <br> > **`1`** Minimal layout > **`2`** Single page design > **`3`** Fully Responsive > **`4`** 404 page active <br> ## 📍 Sections <br> <!-- ```rust Follow the instruction to customize the portfolio ``` --> > **`1`** Header > **`2`** Hero > **`3`** Projects > **`4`** Skills > **`5`** Star > **`6`** Footer > **`7`** 404 Page <br> > ## 🌳 Tree Diagram ``` . └── Portfolio ├── index.html ├── 404.html ├── css │ ├── style.css │ └── ... └── js ├── script.js └── 404.js ``` <br> ## 📦 Deployment <br> ```rust Minifolio is deployed by Github Page and is-a.dev ``` <br> ## ⭐ Star <br> > If you like the project, give a **`Star`** <br> ## 🚩 LICENSE <br> > <b><a href="LICENSE"><code>MIT</code></a></b> <br> ## ✒️ Author <br> > **<code><a href="https://github.com/divyanshudhruv">@ Divyanshu Dhruv</a></code>**
⚡ A self coded portfolio build with HTML, CSS and JS
css,html,javascript,minimal,portfolio
2024-02-05T05:22:49Z
2024-02-05T11:28:49Z
null
1
2
4
1
0
4
null
MIT
CSS
HammadRashid1997/Husky
main
# Husky The repository contains the E2E automation scripts for testing the website husky.ag using Cypress framework. You can view the website here: [Husky](https://www.husky.ag/) ## Results ![Screenshot 2024-01-24 at 2 46 52 PM](https://github.com/Hammad1007/Husky/assets/76726810/c104c7c7-1e83-41be-9a21-583ab6210172)
E2E Testing of a website "Husky" using Cypress
cypress-io,e2e-testing,javascript
2024-02-18T11:16:30Z
2024-02-29T09:57:18Z
2024-02-18T13:59:11Z
1
3
14
1
0
4
null
null
JavaScript
Front-Tips/fetch-performance-tracker
master
null
Using the JavaScript `PerformanceMeasure` interface of the `Performance API` to track and measure the timing of `fetch` operations.
javascript,performance-analysis,performance-api
2024-03-14T13:56:59Z
2024-03-17T12:48:06Z
null
1
0
2
0
0
4
null
null
JavaScript
ViktorSvertoka/goit-react-woolf-hw-04-phonebook
main
# Критерії приймання - При здачі домашньої роботи є посилання: на вихідні файли та робочу сторінку проекту на `GitHub Pages`. - Під час запуску коду завдання в консолі відсутні помилки та попередження. - Для кожного компонента є окрема папка з файлом React-компонента та файлом стилів - Імена компонентів зрозумілі та описові. ## Книга контактів - Створений репозиторій `goit-react-woolf-hw-04-phonebook`. - Проведи рефакторинг коду завдання, використовуючи React-хуки. ### Фінальний результат ![screencapture](./assets/screencapture.png)
Home task for React course📘
goit,javascript,react,tailwindcss,goit-react-woolf-hw-04-phonebook
2024-02-12T20:02:13Z
2024-02-16T21:20:37Z
null
1
0
12
0
0
4
null
null
JavaScript
SalahQerem/my-portfolio
main
<p align="center"> <img src="https://user-images.githubusercontent.com/62269745/174906065-7bb63e14-879a-4740-849c-0821697aeec2.png#gh-light-mode-only" width="40%"> <img src="https://user-images.githubusercontent.com/62269745/174906068-aad23112-20fe-4ec8-877f-3ee1d9ec0a69.png#gh-dark-mode-only" width="40%"> </p> ## Libraries Used In this project, I've used the following libraries: - **Bootstrap:** An open-source toolkit for developing responsive, mobile-first projects on the web. [Bootstrap](https://getbootstrap.com/) - **Font Awesome:** A popular icon set and toolkit for adding vector icons and social logos. [Font Awesome](https://fontawesome.com/) Please refer to the documentation of each library for more information on how to use them. ## Live Preview <h4 align="left">Live Preview is available at https://incandescent-chimera-fbf9a8.netlify.app/</h4> ## Snapshots <img src="./assets/readme images/home-page.png" alt="home page"/> <img src="./assets/readme images/projects.png" alt="my projects"/> <img src="./assets/readme images/contact-me.png" alt="conatct form"/>
Showcasing web development projects and skills, this portfolio repository highlights responsive designs and interactive elements using modern web technologies. View the live site for a full demo!
bootstrap,css,font-awesome,html5,javascript,portfolio,profile
2024-03-04T20:38:42Z
2024-04-09T12:05:50Z
null
3
0
18
0
0
4
null
null
HTML
denoland/subhosting-js
main
# Deno Deploy Subhosting REST API client for JavaScript [![NPM version](https://img.shields.io/npm/v/subhosting.svg)](https://npmjs.org/package/subhosting) This library provides convenient access to the [Deno Deploy Subhosting](https://deno.com/subhosting) REST API, which allows you to programmatically deploy untrusted, third-party code into the cloud, from server-side JavaScript/TypeScript. The REST API documentation can be found [on apidocs.deno.com](https://apidocs.deno.com/). The full API of this library can be found in [api.md](api.md). To learn more about Subhosting, [check out our documentation](https://docs.deno.com/subhosting/manual). ## Installation for Node Node requires dependencies to be preinstalled before executing your scripts. Install the Subhosting client library from npm using one of the following commands: ```sh npm i --save subhosting # or pnpm add subhosting # or yarn add subhosting ``` ## Usage Before you begin, you'll need to have a Deno Deploy access token and an ID for the Deno Deploy organization you're using for Subhosting. - You can find or create a personal access token [in the dashboard here](https://dash.deno.com/account#access-tokens) - Your org ID can be found near the top of the page on your Deno Deploy dashboard [as described here](https://docs.deno.com/subhosting/api) The code examples below assume your access token is stored in a `DEPLOY_ACCESS_TOKEN` environment variable and your Deno Deploy org ID is stored in a `DEPLOY_ORG_ID` environment variable. ### Deno The following example shows client initialization and usage in Deno: ```js import Subhosting from "npm:subhosting"; const subhosting = new Subhosting({ bearerToken: Deno.env.get("DEPLOY_ACCESS_TOKEN"), }); const organization = await subhosting.organizations.get( Deno.env.get("DEPLOY_ORG_ID"), ); console.log(organization); ``` ### Node The following example shows client initialization and usage in Node: <!-- prettier-ignore --> ```js import Subhosting from "subhosting"; const subhosting = new Subhosting({ bearerToken: process.env["DEPLOY_ACCESS_TOKEN"], // This is the default and can be omitted }); async function main() { const organization = await subhosting.organizations.get("DEPLOY_ORG_ID"); console.log(organization.id); } main(); ``` ### Request & Response types This library includes TypeScript definitions for all request params and response fields. You may import and use them like so: <!-- prettier-ignore --> ```ts import Subhosting from "subhosting"; const subhosting = new Subhosting({ bearerToken: process.env["DEPLOY_ACCESS_TOKEN"], // This is the default and can be omitted }); async function main() { const organization: Subhosting.Organization = await subhosting.organizations .get("DEPLOY_ORG_ID"); } main(); ``` Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors. ## Handling errors When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `APIError` will be thrown: <!-- prettier-ignore --> ```ts async function main() { const organization = await subhosting.organizations.get("DEPLOY_ORG_ID") .catch((err) => { if (err instanceof Subhosting.APIError) { console.log(err.status); // 400 console.log(err.name); // BadRequestError console.log(err.headers); // {server: 'nginx', ...} } else { throw err; } }); } main(); ``` Error codes are as followed: | Status Code | Error Type | | ----------- | -------------------------- | | 400 | `BadRequestError` | | 401 | `AuthenticationError` | | 403 | `PermissionDeniedError` | | 404 | `NotFoundError` | | 422 | `UnprocessableEntityError` | | 429 | `RateLimitError` | | >=500 | `InternalServerError` | | N/A | `APIConnectionError` | ### Retries Certain errors will be automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, and >=500 Internal errors will all be retried by default. You can use the `maxRetries` option to configure or disable this: <!-- prettier-ignore --> ```js // Configure the default for all requests: const subhosting = new Subhosting({ maxRetries: 0, // default is 2 }); // Or, configure per-request: await subhosting.organizations.get("DEPLOY_ORG_ID", { maxRetries: 5, }); ``` ### Timeouts Requests time out after 1 minute by default. You can configure this with a `timeout` option: <!-- prettier-ignore --> ```ts // Configure the default for all requests: const subhosting = new Subhosting({ timeout: 20 * 1000, // 20 seconds (default is 1 minute) }); // Override per-request: await subhosting.organizations.get("DEPLOY_ORG_ID", { timeout: 5 * 1000, }); ``` On timeout, an `APIConnectionTimeoutError` is thrown. Note that requests which time out will be [retried twice by default](#retries). ## Advanced Usage ### Accessing raw Response data (e.g., headers) The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return. You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data. <!-- prettier-ignore --> ```ts const subhosting = new Subhosting(); const response = await subhosting.organizations.get("DEPLOY_ORG_ID") .asResponse(); console.log(response.headers.get("X-My-Header")); console.log(response.statusText); // access the underlying Response object const { data: organization, response: raw } = await subhosting.organizations .get("DEPLOY_ORG_ID") .withResponse(); console.log(raw.headers.get("X-My-Header")); console.log(organization.id); ``` ## Customizing the fetch client By default, this library uses `node-fetch` in Node, and expects a global `fetch` function in other environments. If you would prefer to use a global, web-standards-compliant `fetch` function even in a Node environment, (for example, if you are running Node with `--experimental-fetch` or using NextJS which polyfills with `undici`), add the following import before your first import `from "Subhosting"`: ```ts // Tell TypeScript and the package to use the global web fetch instead of node-fetch. // Note, despite the name, this does not add any polyfills, but expects them to be provided if needed. import "subhosting/shims/web"; import Subhosting from "subhosting"; ``` To do the inverse, add `import "subhosting/shims/node"` (which does import polyfills). This can also be useful if you are getting the wrong TypeScript types for `Response` - more details [here](https://github.com/denoland/subhosting-js/tree/main/src/_shims#readme). You may also provide a custom `fetch` function when instantiating the client, which can be used to inspect or alter the `Request` or `Response` before/after each request: ```ts import { fetch } from "undici"; // as one example import Subhosting from "subhosting"; const client = new Subhosting({ fetch: async (url: RequestInfo, init?: RequestInfo): Promise<Response> => { console.log("About to make a request", url, init); const response = await fetch(url, init); console.log("Got response", response); return response; }, }); ``` Note that if given a `DEBUG=true` environment variable, this library will log all requests and responses automatically. This is intended for debugging purposes only and may change in the future without notice. ## Configuring an HTTP(S) Agent (e.g., for proxies) By default, this library uses a stable agent for all http/https requests to reuse TCP connections, eliminating many TCP & TLS handshakes and shaving around 100ms off most requests. If you would like to disable or customize this behavior, for example to use the API behind a proxy, you can pass an `httpAgent` which is used for all requests (be they http or https), for example: <!-- prettier-ignore --> ```ts import http from "http"; import HttpsProxyAgent from "https-proxy-agent"; // Configure the default for all requests: const subhosting = new Subhosting({ httpAgent: new HttpsProxyAgent(process.env.PROXY_URL), }); // Override per-request: await subhosting.organizations.get("DEPLOY_ORG_ID", { baseURL: "http://localhost:8080/test-api", httpAgent: new http.Agent({ keepAlive: false }), }); ``` ## Semantic Versioning This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions: 1. Changes that only affect static types, without breaking runtime behavior. 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals)_. 3. Changes that we do not expect to impact the vast majority of users in practice. We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. We are keen for your feedback; please open an [issue](https://www.github.com/denoland/subhosting-js/issues) with questions, bugs, or suggestions. ## Requirements TypeScript >= 4.5 is supported. The following runtimes are supported: - Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions. - Deno v1.28.0 or higher, using `import Subhosting from "npm:subhosting"`. - Bun 1.0 or later. - Cloudflare Workers. - Vercel Edge Runtime. - Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time). - Nitro v2.6 or greater. Note that React Native is not supported at this time. If you are interested in other runtime environments, please open or upvote an issue on GitHub. ## Contributing This library is auto-generated with [Stainless API](https://www.stainlessapi.com/) based on our [OpenAPI spec](https://apidocs.deno.com/). If you’re interested in contributing to the readme/documentation, feel free to submit a PR. However, since our OpenAPI spec is generated from our private Deno Deploy repository, if you’re interested in contributing code, please provide feedback in the [issues](https://github.com/denoland/subhosting-js/issues) and we’ll review it.
The JavaScript client library for Subhosting API.
deno,javascript,node,npm,typescript,subhosting
2024-02-13T21:41:50Z
2024-03-21T16:20:57Z
null
18
16
15
0
1
4
null
MIT
TypeScript
anfibiacreativa/wasmio-binarytranslate-rust
main
This is a Rust version of the binary translator I built with JavaScript and [Javy](https://github.com/bytecodealliance/javy). ## Pre-requisites - [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) - [wasm-pack](https://github.com/rustwasm/wasm-pack) - [Node.js LTS](https://nodejs.org/en) ## Usage See a video of the debugging: https://youtu.be/lytt2Od7jt0 Fork the repo, and build the translator library, running ```bash wasm-pack build --target web ``` You can now start the vite server with ```bash npm run dev ``` At which point, you can use the translator to translate any string you enter in the input box. ## Debugging ### From VS Code Docs: https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_debugging-webassembly ### Rust Wasm module with DWARF information > [!IMPORTANT] > Rust emits DWARF debug information. However, wasm-pack does not yet retain it during the build. So, instead of running wasm-pack build, users of the common wasm-bindgen/wasm-pack libraries should build manually build using the following commands: ```bash cargo install wasm-bindgen-cli ``` once to install the necessary command-line tool. ```bash cargo build --target wasm32-unknown-unknown ``` to build your library. And ```bash wasm-bindgen --keep-debug --out-dir pkg ./target/wasm32-unknown-unknown/debug/<library-name>.wasm <extra-arguments> ``` to generate the WebAssembly bindings, replacing <library-name> with the name from your Cargo.toml and configuring <extra-arguments> as necessary. In our case, we run: ```bash wasm-bindgen --keep-debug --out-dir pkg ./target/wasm32-unknown-unknown/debug/rust_binary_translate.wasm ``` with the default `--target`, which in this case is `bundler`. Once it's run, update the contents of the file `./pkg/rust_binary_translate.js` to ```javascript import * as wasm from "./rust_binary_translate_bg.wasm"; import { __wbg_set_wasm } from "./rust_binary_translate_bg.js"; __wbg_set_wasm(wasm); // had to refactor the export statement to get the import to work export * as pkg from "./rust_binary_translate_bg.js"; ``` If it generates a `package.json`, also make sure to set ```json "type": "module" ```
Rust compiled to Wasm with wasm-pack, and recompiled with cargo and wasm-bindgen-cli to add DWARF debugging info.
cargo,javascript,rust,rust-lang,wasm,wasm-bindgen,webassembly-demo
2024-03-08T15:42:47Z
2024-03-15T20:45:02Z
null
2
3
22
0
0
4
null
null
JavaScript
ViktorSvertoka/goit-react-woolf-hw-06-phonebook
main
# Критерії приймання - При здачі домашньої роботи є посилання: на вихідні файли та робочу сторінку проекту на `GitHub Pages`. - Під час запуску коду завдання в консолі відсутні помилки та попередження. - Для кожного компонента є окрема папка з файлом React-компонента та файлом стилів - Імена компонентів зрозумілі та описові. ## Книга контактів - Створений репозиторій `goit-react-woolf-hw-06-phonebook`. Виконай рефакторинг коду застосунку «Книга контактів», додавши управління станом за допомогою бібліотеки [Redux Toolkit](https://redux-toolkit.js.org/). Нехай Redux-стан виглядає наступним чином. ```bash { contacts: [], filter: "" } ``` - Створи сховище з `configureStore()` - Використовуй функцію `createSlice()` - Створи дії збереження та видалення контакту, а також оновлення фільтра - Зв'яжи React-компоненти з Redux-логікою за допомогою хуків бібліотеки [react-redux](https://react-redux.js.org/). - Використай бібліотеку Redux Persist для збереження масиву контактів у локальному сховищі ### Фінальний результат ![screencapture](./assets/screencapture.png)
Home task for React course📘
goit,javascript,react,goit-react-woolf-hw-06-phonebook,redux
2024-02-27T17:44:29Z
2024-02-29T15:11:57Z
null
1
0
6
0
0
4
null
null
JavaScript
kislevlevy/master-portfolio
Main
# Master Portfolio Site Assets The site is hosted, and you can access it using the [link](https://kislev.me/).</br> I wrote every line of code in the portfolio.</br> You are welcome to take inspiration and ideas!</br> ### Credits: Tamplete built with codewithsadee - [link](https://github.com/codewithsadee/vcard-personal-portfolio)
My portfolio site assets
css,git,html,html-css-javascript,javascript,npm,parcel,portfolio,portfolio-website
2024-03-06T20:17:07Z
2024-05-22T16:11:26Z
null
1
0
15
0
0
4
null
null
CSS
LeafYeeXYZ/PainterLeaf
main
**[简体中文](README_ZH_CN.md) | [正體中文](README_ZH_TW.md) | English** # PainterLeaf - Text-to-image, supports multiple models - Image-to-text, convert local images to prompts - Also supports image-to-image - Prompt supports Chinese and English (Chinese will automatically call `AI` translation) - Front-end and back-end separation, front-end based on `React`, back-end based on `Hono`, see [this project](https://github.com/LeafYeeXYZ/MyAPIs) - `API` provided by `CloudflareAI` and `HuggingFace` - Internationalization support, currently supports `简体中文`, `正體中文`, and `English` |![](./readme/mobile-light.jpeg)|![](./readme/mobile-dark.jpeg)| |:---:|:---:| |![](./readme/light.png)|![](./readme/dark.png)| ## Usage ### Deploy Server See [this project](https://github.com/LeafYeeXYZ/MyAPIs) ### Modify src/config.json ```javascript { "SERVER": "https://api.xxx.workers.dev", // Your server address } ``` ### Install Bun Please refer to [Bun.sh](https://bun.sh). Or simply run `npm i -g bun` ### Install dependencies ```bash bun i ``` ### Local run ```bash bun run dev ``` ### Build ```bash bun run build ```
A Cute WebApp. Text2Image, Image2Image, Image2Text, Save or Star Images, Multiple Models, Chinese&English Prompt Suport. 一个可爱的 AI 绘画 WebApp, 支持文生图, 图生图, 图片收藏和下载, 多模型, 中英双语提示词. 图生文
cloudflare,cloudflare-workers,javascript,workers-ai,huggingface,image-generation,dreamshaper,m2m100,stable-diffusion,antd
2024-02-08T07:18:58Z
2024-05-23T06:31:37Z
2024-05-23T06:31:37Z
1
0
178
1
0
4
null
GPL-3.0
TypeScript
arham2211/Ecommerce-Website
main
# E-Commerce Website (Security Gates) Welcome to our e-commerce marketplace! Explore our user-friendly front-end website for a seamless shopping experience. Live Demo: https://arham2211.github.io/Ecommerce-Website/
The front-end interface of our e-commerce marketplace website.
bootstrap,css,ecommerce-website,frontend,html,javascript,react
2024-02-10T17:08:50Z
2024-02-10T19:11:11Z
null
1
0
4
0
0
3
null
null
JavaScript
shinobi8894/ninja-cut-game
main
<div align="left"> <a href="https://twitter.com/TadashiAmano"> <img src="https://img.shields.io/twitter/follow/omBratteng?label=Twitter&logo=twitter&style=flat-square&color=1da1f2&logoColor=ffffff" alt="Twitter" /> </a> <a href="https://www.linkedin.com/in/tadashi-amano/"> <img src="https://img.shields.io/static/v1?logo=linkedin&style=flat-square&color=0072b1&label=LinkedIn&message=%E2%98%86" alt="LinkedIn" /> </a> <div align="right"> <a href="https://app.daily.dev/shinobi8894"> <img src="https://api.daily.dev/devcards/v2/YV1FrRVcxM2Rz0beyhlCp.png?r=0gs" width="256" alt="Tadashi Amano's Dev Card"/> </a> </div> </div> # Ninja Cut Game ![ezgif-7-13ff397c50](https://github.com/shinobi8894/ninja-cut-game/assets/56811611/3f11b590-70b9-446b-baba-7de5a0e701d8)
Ninja Cut game using !!. you can use it on your project. Let's grow with shinobi 🐱‍👤🐱‍👤🐱‍👤
css,cut,game,html,javascript,ninja,shinobi8894
2024-02-19T19:55:08Z
2024-02-26T15:15:04Z
null
1
0
3
0
2
3
null
null
JavaScript
Sreyas-Sreelal/acoustino
master
# Acoustino <p align="center"> <img alt="acoustino" src="images/logo.png" height=250 width=250><br/> <a href="https://github.com/actions/toolkit"><img alt="GitHub Actions status" src="https://github.com/sreyas-sreelal/acoustino/workflows/Build/badge.svg"></a> <a href="https://github.com/Sreyas-Sreelal/acoustino/pulls"><img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/sreyas-sreelal/acoustino"></a> <a href="https://github.com/Sreyas-Sreelal/acoustino/issues"><img alt="GitHub issues" src="https://img.shields.io/github/issues/sreyas-sreelal/acoustino"></a> <a href="https://github.com/Sreyas-Sreelal/acoustino/blob/master/LICENSE"><img alt="GitHub issues" src="https://img.shields.io/github/license/sreyas-sreelal/acoustino"></a> <p align="center"> <a href="https://patreon.com/sreyas_sreelal"><img src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dsreyas_sreelal%26type%3Dpatrons&style=for-the-badge" /> </a> <p align="center"> <a href='https://ko-fi.com/sreyas' target='_blank'><img height='40' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /> </p></p> Acoustino is a simple tool to convert MusicXML to Arduino code, which can play that tone through a piezo buzzer. # Installation Download the compiled binaries from release section or build it yourself. # Building 1. Clone the repository ``` git clone https://github.com/sreyas-sreelal/acoustino.git ``` 2. Install dependencies ``` cd acoustino npm install ``` 3. Build ``` npm run tauri build ``` You can find the compiled binary at `target/release` directory. # Images ![scrn1](images/scrn1.png)
Generate Arduino code to play tones from MusicXML through piezo buzzer
arduino,javascript,musicxml,piezo-buzzer,rust,tauri
2024-01-25T12:57:53Z
2024-01-27T01:25:14Z
2024-01-27T01:25:14Z
1
0
55
0
0
3
null
GPL-3.0
Rust
AmulyaMachhan/instagram-clone
master
# Instagram Clone Welcome to the Instagram clone project! This project is a simplified version of Instagram, featuring dynamic post and story addition using JavaScript, as well as supporting both dark and light themes. The design is responsive to ensure a seamless user experience across various devices. You can view this site [here](https://amulyamachhan.github.io/instagram-clone/); ## Features 1. **Dynamic Posts and Stories:** - Utilizes JavaScript to dynamically add and update posts and stories. - Provides a user-friendly interface for uploading and viewing content. 2. **Dark and Light Themes:** - Offers both dark and light themes to cater to user preferences. - Users can easily switch between themes for a personalized experience. 3. **Responsive Design:** - Ensures a seamless user experience across devices, including desktops, tablets, and mobile phones. ## Screenshots ![instagram](https://github.com/AmulyaMachhan/instagram-clone/assets/111338400/41818507-4e5b-49c2-8ec1-1c29858d41d3) ## Technologies Used - HTML5 - CSS3 (Flexbox/Grid for layout) - JavaScript (DOM manipulation) - Media queries for responsiveness ## Setup 1. Clone the repository: ```bash git clone https://github.com/amulyamachhan/instagram-clone.git
This project is a simplified version of Instagram, featuring dynamic post and story addition using JavaScript, as well as supporting both dark and light themes. The design is responsive to ensure a seamless user experience across various devices.
css,dark-mode,design,html,javascript,light-mode,resposive-design,ui
2024-02-25T17:51:52Z
2024-04-09T11:14:02Z
null
1
0
12
0
0
3
null
null
JavaScript
shubham-dube/IIITR_AIMS-GPA-Calculator-Chrome_Extension
main
# AIMS GPA Calculator Extension ### This extension Just Calculates the CGPA and SGPA of the selected Semesters. ### *Developed by: Shubham Dubey* ### *Date of Development : 27th Jan, 2024* ----------------------------------------------------------------------- *AIMS-GPA-Calculator* extension is only supported to the Google Chrome. It is developed for the **AIMS Portal**, IIIT Raichur. It is available at my Repository - https://github.com/shubham-dube/IIITR_AIMS-GPA-Calculator-Chrome_Extension. ## Installation 1. Copy the files from my repository to your laptop/PC. 2. Open **Google Chrome**, go to chrome://extensions and switch on **Developer Mode**. 3. Click on **Load Unpacked**, navigate to the directory where files are copied and select that directory. 4. A demo Video (**Demo Video.mp4**) is Available to this directory, You can access it to configure this Extension. Google Chrome will now install the AIMS-GPA-Calculator extension. ## Usage 1. Open AIMS Portal. Navigate to your **AIMS *View My Course* Page** in Chrome, click on logo in your Chrome extensions bar (if you pinned it) otherwise click on the extensions button on chrome and pin it first then click on the logo. 2. Here you find the all the Semesters you have completed or not (Both). Select the semester for which you want to calculate the CGPA.After Selecting the Semesters, Click on the **Calculate CGPA for selected Semesters** Button. 3. If you want to calculate overal CGPA till Now, You just have to click **Overall GPA** Button. You can also see the SGPA Semesterwise using the button given *Show SemesterWise*. You can calculate multiple CGPA's, they are saved once they calculated. you can delete them using the delete button given. 4. if you want the Full Report of the calculated CGPA, Click on the Report Button . It Will Show The Details Of All Subjects with their Credits and Grades. 5. **Remember** : 1. The Report button will only show the Report of latest calculated CGPA. 2. You can calculate your CGPA Offline Also if you have opened the website once, You access their last updated data after going to the AIMS Portal (you must have to go there even if you are offline, then it will work). 3. This Extension will only work on the **aims.iiitr.ac.in** website. ## Support and Feedback if you have any issues or suggestions regarding this project feel free to contact me at : *cs23b1066@iiitr.ac.in* or *itzshubhamofficial@gmail.com*
*AIMS GPA Calculator* extension Just Calculates the CGPA and SGPA of the selected Semesters. This extension is only supported to the Google Chrome. It is developed for the *AIMS Portal*, IIIT Raichur.
bootstrap5,chrome-api,chrome-extension,chrome-extensions,css,html5,javascript
2024-01-27T12:45:40Z
2024-02-16T12:31:27Z
null
1
0
14
0
0
3
null
null
JavaScript
AdityaKonda6/MyPortfolio-AdityaKonda
main
<h1 align="center">Hi Coders <img src="https://raw.githubusercontent.com/ABSphreak/ABSphreak/master/gifs/Hi.gif" width="30px">, I'm Aditya Konda</h1> <p align="center"> <a href="https://github.com/AdityaKonda6/readme-typing-svg"><img src="https://readme-typing-svg.herokuapp.com?lines=Information+Technology+Undergraduate;Full+Stack+Software+Developer;DS%20|%20AI%20|%20ML%20Enthusiast;Aspiring+Learner&center=true&width=500&height=50"></a> </p> <p align="center"> <em> This is me <b>Aditya Konda</b>, a third year <b>Information Technology</b> undergraduate from <a href="[https://kccemsr.edu.in/]"> <b>K.C College Of Engineering</b>, India</a>. An aspiring <b>Full-Stack Software Developer,</b>&nbsp; <b>Competitive Programmer</b>&nbsp; and <b> Full Stack Web Developer</b> <br> <b><i>"---Always Work Hard and Trust the Process---"</i></b> </p> <h3>Little facts about me 🧑</h3> - 🧞 I'm a Tech Enthusiast since childhood. - 🔭 I’m currently working on Fullstack Web Development. - 👯 I’m looking to collaborate with Fullstack Web and Mobile Developement projects. - 💡 Contributing to Open Source Projects is always been a goal to me. - ⚡ Fun fact: I love Sports, especially volleyball. <br> --- <details> <summary> ✨ Tech stack currently using: </summary> <br> <code><a href="https://www.python.org/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/python/python-icon.svg"></a></code> <code><a href="https://www.oracle.com/java/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/java/java-icon.svg"></a></code> <code><a href="https://www.javascript.com/" target="_blank"><img height="30" src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-plain.svg"></a></code> <code><a href="https://reactjs.org/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/reactjs/reactjs-icon.svg"></a></code> <code><a href="https://nextjs.org/" target="_blank"><img height="30" src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/Cib-next-js_%28CoreUI_Icons_v1.0.0%29.svg/120px-Cib-next-js_%28CoreUI_Icons_v1.0.0%29.svg.png"></a></code> <code><a href="https://www.w3schools.com/html/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/w3_html5/w3_html5-icon.svg"></a></code> <code><a href="https://www.w3schools.com/css/" target="_blank"><img height="30" src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original.svg"></a></code> <code><a href="https://id.heroku.com/login" target="_blank"><img src="https://www.vectorlogo.zone/logos/heroku/heroku-icon.svg" alt="heroku" height="30"></a></code> <code><a href="https://redux.js.org" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/redux/redux-original.svg" alt="redux" height="30"></a></code> <code><a href="https://sass-lang.com" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/sass/sass-original.svg" alt="sass" height="30"></a></code> <code> <a href="https://tailwindcss.com/" target="_blank"> <img src="https://www.vectorlogo.zone/logos/tailwindcss/tailwindcss-icon.svg" alt="tailwind" height="30"/> </a> </code> <code><a href="https://nodejs.org/en/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/nodejs/nodejs-icon.svg"></a></code> <code><a href="https://firebase.google.com/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/firebase/firebase-icon.svg"></a></code> <code><a href="https://git-scm.com/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/git-scm/git-scm-icon.svg"></a></code> <code><a href="https://www.json.org/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/json/json-icon.svg"></a></code> <code><a href="https://colab.research.google.com/" target="_blank"><img height="30" src="https://colab.research.google.com/img/colab_favicon_256px.png"></a></code> </details> <br> <details> <summary> 🌱 Looking forward to learn: </summary> <br> <code><a href="https://flutter.dev/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/flutterio/flutterio-icon.svg"></a></code> <code><a href="https://cloud.google.com/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/google_cloud/google_cloud-icon.svg"></a></code> <code><a href="https://analytics.google.com/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/google_analytics/google_analytics-icon.svg"></a></code> <code><a href="https://www.tensorflow.org/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/tensorflow/tensorflow-icon.svg"></a></code> <code><a href="https://azure.microsoft.com/en-us/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/microsoft_azure/microsoft_azure-icon.svg"></a></code> <code><a href="https://opencv.org/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/opencv/opencv-icon.svg"></a></code> <code><a href="https://pytorch.org/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/pytorch/pytorch-icon.svg"></a></code> <code><a href="https://aws.amazon.com/" target="_blank"><img height="30" src="https://www.vectorlogo.zone/logos/amazon_aws/amazon_aws-icon.svg"></a></code> </details> <br> --- <details open=""> <summary> 📔 GitHub Stats: </summary> <br> <p align="center"> <a href="https://github.com/AdityaKonda6"> <img align="center" height="175px" src="https://github-readme-stats.vercel.app/api?username=AdityaKonda6&show_icons=true&hide_border=true&title_color=94b4a4&amp&icon_color=FFFFFF&amp&text_color=FFFFFF&amp&bg_color=000000&count_private=true&include_all_commits=true"/> </a> <a href="https://github.com/AdityaKonda6"> <img align="center" height="175px" src="https://github-readme-stats.vercel.app/api/top-langs/?username=AdityaKonda6&text_color=FFFFFF&bg_color=000000&title_color=94b4a4&langs_count=15&layout=compact&hide_border=true" /> </a> </p> <p align="center"><img align="center" src="https://github-readme-streak-stats.herokuapp.com/?user=AdityaKonda6&text_color=FFFFFF&bg_color=000000&title_color=94b4a4&langs_count=15&layout=compact&hide_border=true" alt="AdityaKonda6" /></p> </details> --- <h4> Connect with me🤝: <h4> </hr> <a href="https://www.linkedin.com/in/aditya-adi-konda/"> <img align="left" alt=" Aditya Konda | Linkedin" width="24px" src="https://www.vectorlogo.zone/logos/linkedin/linkedin-icon.svg" /> </a> <a href="mailto:adityakonda04@gmail.com"> <img align="left" alt="Aditya Konda | Gmail" width="26px" src="https://www.vectorlogo.zone/logos/gmail/gmail-icon.svg" /> </a> <a href="https://twitter.com/AdityaKonda7"> <img align="left" alt="Aditya Konday| Twitter" width="26px" src="https://www.vectorlogo.zone/logos/twitter/twitter-official.svg" /> </a> <a href="https://www.instagram.com/konda_aditya"> <img align="left" alt="Aditya Konda | Instagram" width="24px" src="https://www.vectorlogo.zone/logos/instagram/instagram-icon.svg" /> </a> <a href="https://www.facebook.com/aditya.konda.108"> <img align="left" alt="Aditya Konda| Github" width="26px" src="https://www.vectorlogo.zone/logos/facebook/facebook-tile.svg" /> </a> <a href="https://github.com/AdityaKonda6"> <img align="left" alt="Aditya Konda| Github" width="26px" src="https://www.vectorlogo.zone/logos/github/github-tile.svg" /> </a> <br> <p align="right" > Created with 🖤 by <a href="https://github.com/AdityaKonda6">Aditya Konda</a></p> <p align="right" > <img src="https://komarev.com/ghpvc/?username=AdityaKonda6&label=Profile%20views&color=0e75b6&style=flat" alt="AdityaKonda6" /> </p>
Hii This Is My New Portfolio using HTML, CSS, JavaScript, Bootstrap
bootstrap,css,html,javascript
2024-03-08T18:41:29Z
2024-03-09T09:59:08Z
null
1
0
47
0
0
3
null
MIT
CSS
Ken0803/Lofi-website
master
# What is this project This project is a clone of Lofi.co and adding some function lick todolist, counting as well as remove some part ## How to build and run ### 1. Install NodeJs and npm Download and install Node.js from this link https://nodejs.org/en/download/ ### 2. Clone or download this repo. On your terminal or cmd, type: `git clone git@github.com:Ken0803/Lofi-website.git` . On your command line, navigate to root folder and install: `npm install` ### 3. Deploy the application . Deploy the app on web-browsers: `npm start` ### Technology use in the application . React . Redux . Firebase . ReactPlayer . Google Authentification . SASS
The Clone of Lofi.co website that provides several environments with music, nature sounds
firebase,javascript,react,scss
2024-02-04T17:31:51Z
2024-02-04T18:01:15Z
null
1
0
18
0
1
3
null
null
JavaScript
jorgefl8/Gastronify
main
# Gastronify - This project is based on a RestaurantApp, trying to be usable on multiple platforms (Android, iOS, Web). - Developed using React-Native & Exgo Go - Project for CM 2023-2024 - **CONTENTS**: - The icon lib is [react-native-vector-icons](https://ionic.io/ionicons) - Navigation with [react-router-native](https://reactrouter.com/en/main) - See [react-native doc](https://reactnative.dev/docs/getting-started) for usable components. - See [expo doc](https://docs.expo.dev/) for usable components. - For animations see [react-native-animatable](https://www.npmjs.com/package/react-native-animatable) - Using Firebase as a persistance data base - **STEPS FOR USING**: 1. Run the command `npm install`. 2. Run the command `npm start` or `npm run android` for automatically open on android simulator. - **CONTRIBUTORS**: - Jorge Florentino Serra - Pablo Vera López - Alejandro Fernández Orozco - María Luisa Rodríguez Cabrera
RestaurantApp using ReactNative + ExpoGo
expo-go,javascript,react-native
2024-02-20T10:16:09Z
2024-04-22T16:22:25Z
null
4
3
135
0
0
3
null
MIT
JavaScript
adiyadav123/Gemini-Chat
main
null
Gemini Chat is an AI chatbot website created by Aditya Yadav which uses Google's Gemini. It is designed to be informative, engaging, and helpful. Gemini can answer questions on a wide range of topics, including general knowledge, current events, and entertainment. It can also provide weather updates, sports scores, and other useful information.
bard,deepmind,gemini,gemini-api,google,google-ai,google-gemini,googleai,chatbot,css
2024-02-03T19:24:11Z
2024-02-23T10:15:15Z
2024-02-04T13:01:41Z
1
0
14
0
1
3
null
null
JavaScript
BisRyy/global
master
# GLOBAL COMPILER ### The compiler you always wanted Global as the name suggests is a versatile and globalized compiler designed to understand various language syntaxes. Whether you are working with C++, Java, Python, or other programming languages, Global Compiler aims to provide a unified and seamless compilation experience. ## Features - **Multi-Language Support**: Global Compiler is not bound to a specific programming language. It is designed to handle multiple languages, making it a versatile tool for developers working on diverse projects. - **Syntax Understanding**: The compiler is equipped with syntax parsers for different languages, allowing it to interpret and compile code from various sources. - **Ease of Use**: With a simple and intuitive interface, Global Compiler ensures that users can easily compile their code without the hassle of switching between different compilers for different languages. - **Extensibility**: Global Compiler is designed to be extensible, allowing developers to add support for additional languages or customize existing language modules. ## Getting Started To get started with Global Compiler, follow these steps: 1. Clone the Repository: ```bash git clone https://github.com/bisryy/global.git cd global ``` Build the Compiler: *For Linux* ``` make ``` *For Windows* ``` mingw32-make ``` Run the Compiler: ```bash ./global <source-file> [options] ``` *Tokenizer* ```bash ./lexer <source-file> ``` ## Usage Once the compiler is built, you can use it to compile source files in different languages. For example: ```bash ./global tests/test.cpp ``` This command will compile the C++ source file test.cpp. *Help* ```bash $ ./global -h Usage: ./global <filename> [-e] [-w] [-log] [-a] [-l] [-h] Options: -l, --line: Compile Line by line -e, --error: Compile with errors -w, --warning: Show warnings -log: Show logs -a, -all: Show all -h, --help: Show help ``` ## Example ``` $ make $ ./global test.c $ ./global test.cpp $ ./global test.py $ ./global test.js $ ./global test.rs $ ./global test.php ... ``` ## Language Features - [x] print statement ``` print("Hello World") ``` - [x] Variables - [x] Variable Declaration ``` var num = 12 ``` - [x] Variable Assignment ``` num = 21 ``` - [x] Data Types - [x] Integer ```cpp int num = 21 ``` - [x] String ```python print("This is string.") ``` - [x] Boolean ```js let isTrue = true ``` - [ ] Float ```rust num = 2.34 ``` - [x] Operators - [x] Arithmetic ( +, -, *, /, % ) ```c int x = 4; int y = 6; int z = 8; x = y + z; y = x + z; z = x + y; int a = z + y - (x % y) + (x * z) + (y / 2) * (x - y * z); printf(a + x + y + z); // prints -7938 ``` - [x] Relational ( <, >, <=, >=, ==, != ) ```php $x = 1; $y = 2; echo $x < $y; // prints 1 echo $x > $y; // prints 0 echo $x <= $y; // prints 1 echo $x >= $y; // prints 0 echo $x == $y; // prints 0 echo $x != $y; // prints 1 ``` - [x] Logical ( &&, ||, ! ) ```cpp int x = 1; int y = 2; cout << (x && y) << endl; // prints 1 cout << (x || y) << endl; // prints 1 cout << !x << endl; // prints 0 ``` - [x] Assignment ( = ) ```python x = 1 y = 2 + x z = 3 * y print(z) // prints 9 ``` - [x] Comment ( //, #) ```c // This is a comment ``` ```python # This is also a comment ``` - [x] Conditional Statements - [x] if - [x] else ```js x = 1 if x < 0 console.log("x is negative."); else console.log("x is positive") // prints x is negative. if x % 2 console.log("x is odd"); else console.log("x is even") // prints x is odd ``` - [ ] Loops - [ ] for - [ ] while - [ ] do while - [ ] Functions - [ ] Arrays - [ ] Classes - [ ] Structs ## Languages Supported <!-- checkbox --> - [x] C++ - [x] C - [x] Python - [x] JavaScript - [x] Rust - [x] PHP - [ ] Ruby - [ ] Go - [ ] Java
Global is a versatile and globalized compiler designed to understand various language syntaxes. Whether you are working with C++, Java, Python, or other programming languages, Global Compiler aims to provide a unified and seamless compilation experience.
compiler,compiler-design,cpp,javascript,python3,rust
2024-01-30T23:12:16Z
2024-02-17T10:45:54Z
null
5
6
37
0
4
3
null
null
C++
ctpena/asagaoui
main
# AsagaoUI AsagaoUI is a CSS framework based on Japan's Digital Agency design system. ## Development Status AsagaoUI is in the early stages of development and may be unstable. ## Documentation AsagaoUI documentation is located in the site folder of the project. The documentation site is built with [HUGO](https://gohugo.io) and is hosted at https://asagaoui.com. ## Quickstart ### Clone repository ```bash git clone https://github.com/ctpena/asagaoui.git ``` `dist/css/asagaoui.css` is the compiled CSS. You can use it in any way you prefer. The compiled JavaScript is located at `dist/js/asagaoui.js`. ### Install with NPM ```bash npm i asagaoui ``` ### Minimum HTML The following HTML is required ```html <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>AsagaoUI demo</title> <link rel="stylesheet" href="dist/css/asagaoui.css"> </head> <body class="body"> <h1>AsagaoUI</h1> <script src="dist/js/asagaoui.js"></script> </body> </html> ``` ## License AsagaoUI is licensed under the MIT License. AsagaoUI also includes several external libraries. For all licenses, please see the LICENSE file. The documentation located under site/content/ is licensed under the CC BY 4.0.
AsagaoUI is a CSS framework based on Japan's Digital Agency design system.
css,css-framework,html,scss,scss-framework,javascript,typescript
2024-02-19T01:24:54Z
2024-05-21T00:00:31Z
null
1
0
21
0
1
3
null
NOASSERTION
SCSS
Muniiz01/Driveline
main
null
Uma pagina web de um sistema de aluguel de veiculos
bootstrap,javascript,php
2024-03-04T01:56:48Z
2024-05-23T00:34:59Z
null
4
1
164
0
0
3
null
null
CSS
yupanquidev/cv
main
# CV ## Recursos - [Iconos](https://tabler.io/icons) ### Fonts: - [Geist](https://vercel.com/font) - [Monaspace](https://monaspace.githubnext.com/)
resume
astro,css,html,javascript,typescript
2024-01-31T13:31:21Z
2024-05-23T14:33:21Z
null
2
1
65
0
1
3
null
null
Astro
sublinks/sublinks-js
main
<div align="center"> ![GitHub tag (latest SemVer)](https://img.shields.io/github/release/sublinks/sublinks-js.svg?style=for-the-badge) [![License](https://img.shields.io/github/license/sublinks/sublinks-js.svg?style=for-the-badge)](LICENSE) ![GitHub stars](https://img.shields.io/github/stars/sublinks/sublinks-js.svg?style=for-the-badge) </div> <div align="center"> <img src="https://avatars.githubusercontent.com/u/153321235?s=200&v=4" width=200px height=200px></img> <h3 align="center"><a href="">Sublinks JS</a></h3> <p align="center"> A JavaScript library for interacting with the sublinks API. </p> </div> ## Why two libraries? This one is not connected to an AGPL library so can be used in MIT projects
A JavaScript library for interacting with the sublinks API
sublinks,javascript,typescript
2024-02-07T22:35:45Z
2024-02-08T19:06:31Z
2024-02-08T14:47:43Z
4
7
22
14
0
3
null
MIT
TypeScript
IOswaldoZarzaMorales/deploy-render-local
main
null
Ecommerce Loka'l
css,html,java,javascript,spring-boot
2024-02-16T06:02:02Z
2024-03-07T21:17:38Z
null
7
1
19
0
2
3
null
null
HTML
ryng64/react-fm-webviewer
main
# React + Vite + Claris FM A react starter template to create supplemental UI widgets in FileMaker with: - Offline Support - No need for web server. ![](react-fm.gif) This project bundles a React project into a single file that is uploaded to into a FileMaker field. This tooling is intended to serve as a base for creating small widgets for FileMaker's WebViewer. ## FileMaker Interactions running `npm run build` while webviewdepoly.fmp12 is open, will automatically upload the `dist/index.html` to the `wvd::html` field. Review `uploadToFM.js` to customize this interaction. - Requires Enabled fmurlscript by going to Manage Security > Advanced Security > Extended Privileges (if using a new file) ### Sample Functions 2 JavaScript functions that interact with FileMaker - review `fmcount.jsx` to view FileMaker Scripts be called from the web app. - review `App.jsx` to view function defintion inside App() that becomes accessible to FileMaker 2 FileMaker scripts that interact with WebViewer Javascript. - callFromWeb - callFromFileMaker ## ToDo: - Bundle Assests inline ( svg, images ) `will cause significantly larger files` - Remove broken images/assets in Demo - automate bundle and insert Mac support and testing. - Button in FileMaker to run build. - FileMaker Layout for LocalHost Environment for live development in FM ## Complete - Bundle web app into single inline html file. - Compatible with React. - FileMaker Script to insert data from html file. - npm automate the bundle and Filemaker insert script. - Add Sample Perform FMscript from JavaScript - Add Sample Perform JavaScript from FM # Vite Stuff This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. Currently, two official plugins are available: - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
Base starter app for creating react widgets for Claris FileMaker.
claris,filemaker,inline,javascript,offline,react,vite
2024-02-12T07:06:50Z
2024-03-24T04:45:03Z
null
1
0
12
0
0
3
null
MIT
JavaScript
lab-land/diverse-ui
main
# KIT Starter KIT library with multiple design System
null
frontend,html,javascript,kit,tailwindcss,typescript,ui,material-design
2024-02-05T01:28:25Z
2024-02-12T21:55:12Z
2024-02-12T16:30:15Z
3
1
66
0
4
3
null
MIT
TypeScript
metatyper/metatyper
main
<div align="center" class="cover"> [![MetaTyper](https://raw.githubusercontent.com/metatyper/metatyper/main/docs/images/cover.png)](https://metatyper.dev/) code faster, smarter, better --- [![website](https://img.shields.io/badge/Docs-metatyper.dev-2ea845?style=flat&labelColor=202020)](https://metatyper.dev/) [![npm](https://img.shields.io/npm/v/metatyper?style=flat&labelColor=202020&label=NPM)](https://www.npmjs.com/package/metatyper) [![license: MIT](https://img.shields.io/badge/License-MIT-00aa00.svg?style=flat&labelColor=202020)](https://opensource.org/licenses/MIT) [![build size](https://img.shields.io/bundlephobia/minzip/metatyper?style=flat&labelColor=202020&label=Size)](https://bundlephobia.com/result?p=metatyper) [![Tests](https://img.shields.io/github/actions/workflow/status/metatyper/metatyper/test.yaml?style=flat&labelColor=202020&label=Tests)](https://github.com/metatyper/metatyper/actions/workflows/test.yaml) [![Coveralls](https://img.shields.io/coverallsCoverage/github/metatyper/metatyper?style=flat&labelColor=202020&label=Coverage)](https://coveralls.io/github/metatyper/metatyper?branch=main) [![donate](https://img.shields.io/badge/Donate-PayPal-ff3f59.svg?style=flat&labelColor=202020)](https://paypal.me/vadzimsharai) </div> &nbsp; ## Introduction The MetaTyper project provides a powerful approach to using runtime types in TypeScript and JavaScript code. It is based on the principle of using classical objects or classes as a data schema for further validation and serialization. The goal of the project is to make runtime types as developer-friendly as possible. More Facts: - Works in Node.JS and all modern browsers. - Automatically infers TypeScript types. - Works with native JavaScript. - It's tiny. - Zero dependencies. - Rich error details. - Rich extensibility support. &nbsp; ## Installation ```bash npm install metatyper ``` or ```bash yarn add metatyper ``` or ```html <script src="https://cdn.jsdelivr.net/npm/metatyper/lib/metatyper.min.js"></script> <!-- or another cdn --> <script src="https://www.unpkg.com/metatyper/lib/metatyper.min.js"></script> ``` > In this case, you need to use this library through the `MetaTyper` global variable: `MetaTyper.Meta({ /* ... */ })` &nbsp; ## Basic Usage First, you can create a Meta object. ```typescript import { Meta, NUMBER } from 'metatyper' const user = Meta({ id: 0, username: 'some user name', stars: NUMBER({ min: 0, default: 0 }) }) user.id = 'some text' // type & validation error user.stars = 'some text' // type & validation error ``` &nbsp; You can also simply validate different objects. ```typescript import { BOOLEAN, INTEGER, Meta, STRING } from 'metatyper' const userSchema = { id: INTEGER(), username: STRING({ minLength: 3, regexp: '^[a-zA-Z0-9 _]+$' }), stars: 0, // any number someFlag: BOOLEAN({ optional: true }) } Meta.validate(userSchema, { id: 1.1, // throw a validation error username: 'some user name', stars: 1 }) Meta.validate(userSchema, { id: 1, username: 'some user name' // throw a validation error, because stars is not optional field }) ``` &nbsp; Finally, you can work with classes instead of objects. ```typescript import { DATE, INTEGER, Meta, STRING } from 'metatyper' import 'reflect-metadata' @Meta.Class({ ignoreProps: ['someInstanceFlag', 'someClassFlag'] }) class User { @Meta.declare(INTEGER({ default: 0 })) id: number username = 'some user name' @Meta.declare({ default: 0, min: 0 }) stars: number // for this you need `reflect-metadata` createdAt = DATE({ default: new Date(), coercion: true // cast a string or number to a date (and vice versa) }) someInstanceFlag = false static someClassFlag = true static someAnotherClassFlag = true } User.someClassFlag = 'string' as any // ok, because the field is listed in the ignoreProps User.someAnotherClassFlag = 'string' as any // type & validation error const user = new User() Meta.deserialize(user, { id: 2, username: 'some another user name', createdAt: 1704067200 * 1000, // this timestamp will cast to Date("2024-01-01") someInstanceFlag: 'no boolean' // ok, because the field is listed in the ignoreProps }) Meta.deserialize(user, { id: 1.1 // validation error }) ``` &nbsp; ## Table of Contents - [Introduction](#introduction) - [Installation](#installation) - [Basic Usage](#basic-usage) - [Table of Contents](#table-of-contents) - [Documentation](#documentation) - [Meta Objects](#meta-objects) - [Meta](#meta) - [Meta args](#meta-args) - [Meta inheritance](#meta-inheritance) - [Meta.Class decorator](#metaclass-decorator) - [Meta.declare decorator](#metadeclare-decorator) - [Meta.isMetaObject](#metaismetaobject) - [Meta.copy](#metacopy) - [Meta.rebuild](#metarebuild) - [Meta Types](#meta-types) - [MetaType](#metatype) - [MetaType Implementation](#metatype-implementation) - [MetaTypeArgs](#metatypeargs) - [Built-in Meta Types](#built-in-meta-types) - [ANY](#any) - [BOOLEAN](#boolean) - [STRING](#string) - [NUMBER](#number) - [INTEGER](#integer) - [BIGINT](#bigint) - [DATE](#date) - [LITERAL](#literal) - [INSTANCE](#instance) - [UNION](#union) - [ARRAY](#array) - [TUPLE](#tuple) - [OBJECT](#object) - [Recursive structures](#recursive-structures) - [Validation](#validation) - [Validators](#validators) - [Disabling Validation](#disabling-validation) - [Serialization and Deserialization](#serialization-and-deserialization) - [Serializers and Deserializers](#serializers-and-deserializers) - [Disable Serialization](#disable-serialization) - [Types Coercion](#types-coercion) - [BOOLEAN coercion](#boolean-coercion) - [STRING coercion](#string-coercion) - [NUMBER coercion](#number-coercion) - [INTEGER coercion](#integer-coercion) - [BIGINT coercion](#bigint-coercion) - [DATE coercion](#date-coercion) - [Errors](#errors) - [MetaTypeSerializationError](#metatypeserializationerror) - [MetaTypeSerializerError](#metatypeserializererror) - [MetaTypeDeSerializerError](#metatypedeserializererror) - [MetaTypeValidationError](#metatypevalidationerror) - [MetaTypeValidatorError](#metatypevalidatorerror) - [MetaTypeValidatorsArrayError](#metatypevalidatorsarrayerror) - [Similar Libraries](#similar-libraries) - [Change Log](#change-log) &nbsp; ## Documentation ### Meta Objects #### Meta To work with Meta types it is convenient to use Meta objects. A Meta object is a proxy object that changes the logic of reading and writing values to the object's properties. Example: ```typescript const objA = { a: 1 } const metaObjA = Meta(objA) // throw a validation error because this property has been initialized number metaObjA.a = 'str' const metaObjB = Meta() metaObjB.a = 'str' // throw a validation error because this property has been initialized string metaObjB.a = 2 ``` Since classes are more often used to describe properties, this library provides Meta classes. The difference from Meta objects is that instances of the class will also be Meta objects. Example: ```typescript class A { a = 'string' static staticA = 2 } const MetaA = Meta(A) // similar to the @Meta.Class() decorator // throw a validation error because this property was initialized number MetaA.staticA = 'str' as any const metaInstanceA = new MetaA() // throw a validation error because this property was initialized 'string' metaInstanceA.a = 1 as any ``` > To get an original object from Meta object you can use `Meta.proto(metaObject)` method. &nbsp; #### Meta args This is arguments for creating a Meta object. ```typescript function Meta<T extends object>(protoObject?: T, metaArgs?: MetaArgs): Meta<T> ``` Meta function has the following arguments: ```typescript type MetaArgs = { name?: string initialValues?: Record<string | symbol, any> ignoreProps?: (string | symbol)[] | ((propName: string | symbol) => boolean) validationIsActive?: boolean serializationIsActive?: boolean changeHandlers?: MetaChangeHandlerInfoType[] errorHandlers?: MetaErrorHandlerInfoType[] metaTypesArgs?: MetaTypeArgs | ((metaTypeImpl: MetaTypeImpl) => MetaTypeArgs) metaTypesResolver?: MetaTypesResolver autoResolveMetaTypes?: boolean dynamicDeclarations?: boolean metaInstanceArgs?: MetaArgs | 'same' buildMetaInstance?: boolean metaBuilder?: MetaObjectsBuilder } & Record<string, any> ``` &nbsp; - `name?: string` - A string that overrides the default name of the Meta object. The name is used when displaying the Meta object. For example, if the default name is `MetaObject`, you can pass `MyMetaObject` as the name argument to change it. &nbsp; - `initialValues?: Record<string | symbol, any>` - An object that defines the initial values of the properties of the Meta object. The `default` value is `{}`. &nbsp; - `ignoreProps?: (string | symbol)[] | ((propName: string | symbol) => boolean)` - Specifies which properties of the Meta object should be ignored by the Meta object. The `default` value is `[]`. It can be either: - An array of strings or symbols that represent the property names to ignore. - A function that takes a property name as an argument and returns a boolean value indicating whether to ignore it or not. &nbsp; - `validationIsActive?: boolean` - A boolean that indicates whether the Meta object should perform validation on the Meta object or not. The `default` value is `true`. &nbsp; - `serializationIsActive?: boolean` - A boolean that indicates whether the Meta object should perform serialization on the Meta object or not. The `default` value is `true`. &nbsp; - `changeHandlers?: MetaChangeHandlerInfoType[]` - An array of handlers that handle changes in the Meta object. The `default` value is `[]`. &nbsp; - `errorHandlers?: MetaErrorHandlerInfoType[]` - An array of handlers that handle errors in the Meta object. The `default` value is `[]`. &nbsp; - `metaTypesArgs?: MetaTypeArgs | ((metaTypeImpl: MetaTypeImpl) => MetaTypeArgs)` - Defines the arguments for building or rebuilding the Meta types of the Meta object. It can be either: - An object that contains the properties and values of the Meta types arguments. - A function that takes a Meta type implementation as an argument and returns an object of Meta types arguments. The `default` value is `{}`. &nbsp; - `metaTypesResolver?: MetaTypesResolver` - A function that resolves Meta types from values. It takes any value as an argument and returns a Meta type: `(value: any, args?: MetaTypeArgs) => MetaTypeImpl`. The `default` value is `MetaTypeImpl.getMetaTypeImpl` &nbsp; - `autoResolveMetaTypes?: boolean` - A boolean that indicates whether the Meta object should automatically resolve the Meta types from a value or not. For example, the value 1 in the `Meta({field: 1 })` object will be used to declare a `NUMBER` metatype. The `default` value is `true`. &nbsp; - `dynamicDeclarations?: boolean` - A boolean that indicates whether the Meta object should allow new declarations of new properties or not. For example, you can define a new metatype like this: `metaObject.anyField = NUMBER({ default: 1 })`. The `default` value is `true`. &nbsp; - `metaInstanceArgs?: MetaArgs | 'same'` - Defines the arguments for creating the Meta instance of the Meta class. It can be either: - An object that contains the properties and values of the Meta instance arguments. - The string `'same'` that indicates that the same arguments as the Meta class should be used. The `default` value is `'same'`. &nbsp; - `buildMetaInstance?: boolean` - A boolean that indicates whether the Meta class should build the Meta instance or not. If true, the Meta class will use the metaInstanceArgs object to create the Meta instance. The `default` value is `true`. &nbsp; - `metaBuilder?: MetaObjectsBuilder` - A Meta objects builder that is used to create the Meta object. The Meta objects builder is an object that implements the MetaObjectsBuilder interface. The `default` value is the global Meta objects builder (`MetaObjectsBuilder.instance`). &nbsp; > Record<string, any> - used if you want to use a custom builder > To get the Meta args of a Meta object you can use `Meta.getMetaArgs(metaObject)` method. &nbsp; #### Meta inheritance Meta objects support the extension of classic objects with an additional side effect. Objects inheritance ```typescript import { BOOLEAN, Meta, MetaType, NUMBER, STRING } from 'metatyper' const obj1: any = { a: 1, b: NUMBER({ optional: true }) } const obj2: any = { c: 2, d: STRING({ optional: true }) } const obj3: any = { e: 3, f: BOOLEAN({ optional: true }) } Object.setPrototypeOf(obj2, obj1) const metaObj2 = Meta(obj2) // true, // because obj1 is not a Meta object // and there is no special logic for its properties console.log(metaObj2.b instanceof MetaType) // but this will create its own MetaObj2 property 'a' // and add a Meta type declaration NUMBER({ default: 0 }) metaObj2.b = NUMBER({ default: 0 }) console.log(metaObj2.b === 0) // true Object.setPrototypeOf(obj3, metaObj2) obj3.e = '1' // ok, because obj3 is not a Meta object // validation error, // because this is a property of the MetaObj2 Meta object // and there is special logic for it obj3.c = '1' ``` &nbsp; > The prototype of a Meta object is the original object: `Object.getPrototypeOf(metaObj2) === obj2` &nbsp; Classes inheritance ```typescript import { Meta, NUMBER } from 'metatyper' @Meta.Class() class A { static a = NUMBER({ optional: true }) a = NUMBER({ optional: true }) } class B extends A { static b = NUMBER({ optional: true }) b = NUMBER({ optional: true }) } @Meta.Class() class C extends B { static c = NUMBER({ optional: true }) c = NUMBER({ optional: true }) } console.log(A.toString()) // [<meta> class A] { a: NUMBER = undefined } console.log(B.toString()) // [<meta child> class B] { b = NUMBER } console.log(C.toString()) // [<meta> class C] { c: NUMBER = undefined; [a]: NUMBER = undefined } // brackets [a] mean that property is a property of the parent Meta class const aInstance = new A() const bInstance = new B() const cInstance = new C() console.log(aInstance.toString()) // [<meta> instance A] { a: NUMBER = undefined } console.log(bInstance.toString()) // [<meta> object] { a: NUMBER = undefined; b: NUMBER = undefined } console.log(cInstance.toString()) // [<meta> instance C] { a: NUMBER = undefined; b: NUMBER = undefined; c: NUMBER = undefined } // There are no [a] brackets in instances, // as these properties are intrinsic // (you can learn how js instance creation works) ``` &nbsp; > Static classes work as simple Meta objects. &nbsp; #### Meta.Class decorator Decorator does the same thing as `Meta(A)`. Example: ```typescript import { Meta } from 'metatyper' @Meta.Class() // Meta.Class(args) has arguments as in Meta({}, args) class MetaA { a = 'string' static a = 2 } // throw a validation error because this property was initialized number MetaA.a = 'str' const metaInstanceA = new MetaA() // throw a validation error because this property was initialized 'string' metaInstanceA.a = 1 ``` &nbsp; #### Meta.declare decorator This decorator lets you specify the Meta type of your properties. You can do this in different ways: &nbsp; - Specify the Meta type explicitly: ```typescript class Test { @Meta.declare(NUMBER({ min: 0 })) a: number } ``` &nbsp; - Let the decorator infer the Meta type from the property value. ```typescript class Test { @Meta.declare({ min: 0 }) a: number = 0 } ``` &nbsp; - Use `reflect-metadata` to automatically resolve the Meta type from the property type: ```typescript class Test { @Meta.declare({ min: 0 }) a: number } ``` > You need to import `reflect-metadata` before using the option. Otherwise, the Meta type will be `ANY()`. &nbsp; #### Meta.isMetaObject If you need to check if an object is a Meta object, you can use this method: `Meta.isMetaObject(obj)`. &nbsp; #### Meta.copy Sometimes you may need to copy a Meta object. You can do this by using the spread operator: `{ ...metaObject }`. However, this will not copy the type declarations of the Meta object. To copy the type declarations as well, you can use `Meta.copy`: ```typescript const metaObjectCopy = Meta.copy(metaObject) ``` This method creates a copy of a Meta object and preserves its values, types, prototype and arguments. Example: ```typescript import { Meta, STRING } from 'metatyper' const origObject: any = { a: 1 } const origMetaObject = Meta(origObject) origMetaObject.a = 2 origMetaObject.b = STRING({ default: '' }) const metaObjectCopy = Meta.copy(origMetaObject) metaObjectCopy.a === 2 // true metaObjectCopy.b === '' // true ``` &nbsp; #### Meta.rebuild You may also need to reset the meta object to its original state. The `Meta.rebuild` is useful for creating a new instance of a Meta object with its initial state and configuration. ```typescript const newMetaObject = Meta.rebuild(metaObject) ``` This method rebuilds a Meta object using the same original object and arguments that were used to create the Meta object. Example: ```typescript import { Meta, STRING } from 'metatyper' const origObject: any = { a: 1 } const origMetaObject = Meta(origObject) origMetaObject.a = 2 origMetaObject.b = STRING({ default: '' }) const newMetaObject = Meta.rebuild(origMetaObject) newMetaObject.a === 1 // true newMetaObject.b === undefined // true // because `origObject` was used to create the new Meta object ``` &nbsp; ### Meta Types #### MetaType Meta types extend built-in types, but they have more features: validation and serialization. The basic logic of Meta types is in metaTypeImpl. Example, how to create a new Meta type: ```typescript import { MetaType, StringImpl } from 'metatyper' const newType1 = MetaType<string>(StringImpl, { /* metaTypeArgs */ }) const newType2 = MetaType<string>( StringImpl.build({ /* metaTypeArgs */ }) ) ``` &nbsp; #### MetaType Implementation Meta type implementation example: ```typescript import { MetaType, StringImpl } from 'metatyper' class LowerCaseStringImpl extends StringImpl { static isCompatible(value: string) { if (!this.isCompatible(value)) { return false } return !/[A-Z]/.test(value) } } export function LowerCaseString() { return MetaType<LowerCaseString>(LowerCaseStringImpl) } type LowerCaseString = MetaType<Lowercase<string>, LowerCaseStringImpl> ``` ```typescript import { Meta } from 'metatyper' @Meta.Class() class MyNewExample { str = LowerCaseString() } const instance = new MyNewExample() instance.str = 'abc' // ok instance.str = 'aBc' // type and validation error ``` To learn more about the principles of Meta types creation, you can explore the [source code](https://github.com/metatyper/metatyper/tree/main/src/metatypes/types) of the built-in Meta types. &nbsp; #### MetaTypeArgs This represents the arguments for creating a Meta type. ```typescript type MetaTypeArgs< T = any, IsNullishT extends boolean = boolean, IsNullableT extends boolean = IsNullishT, IsOptionalT extends boolean = IsNullishT > = { name?: string subType?: any default?: T | ((declaration?: MetaTypeImpl) => T) nullish?: IsNullishT nullable?: IsNullableT optional?: IsOptionalT coercion?: boolean validateType?: boolean noBuiltinValidators?: boolean noBuiltinSerializers?: boolean noBuiltinDeSerializers?: boolean validators?: (ValidatorType | ValidatorFuncType)[] serializers?: (SerializerType | SerializeFuncType)[] deserializers?: (DeSerializerType | DeSerializeFuncType)[] } & Record<string, any> ``` &nbsp; `name?: string` - A string that overrides the default name of the Meta type. The name is used when displaying the Meta type. &nbsp; `subType?: any` - A Meta type or a value that defines the type of the nested values in the value. For example, if the value is an array, you can use the subType to specify the type of the elements in the array. &nbsp; `default?: T | ((declaration?: MetaTypeImpl) => T)` - A value or a function that returns a value that is used as the default value for the Meta type. The default value is used when the initial value is `undefined`. &nbsp; `nullish?: boolean` - A boolean indicating whether the value can be `null` or `undefined`. If `false`, a `NullableValidator` and an `OptionalValidator` are added to the Meta type. The default value is `false`. &nbsp; `nullable?: boolean` - A boolean indicating whether the value can be `null`. If `false`, a `NullableValidator` is added to the Meta type. If `nullish` and `nullable` are contradictory, the value of `nullable` will be chosen. Default value is the same as `nullish`. &nbsp; `optional?: boolean` - A boolean indicating whether the value can be `undefined`. If `false`, an `OptionalValidator` is added to the Meta type. If `nullish` and `optional` are contradictory, the value of `optional` will be chosen. Default value is the same as `nullish` &nbsp; `coercion?: boolean` - A boolean that indicates whether the value should be coerced to the expected type or not. If `true`, an `CoercionSerializer` is added to the Meta type, which tries to convert the main value to the appropriate type. For example, if the Meta type is a string, and the main value is a number, the number will be cast to a string. &nbsp; `validateType?: boolean` - A boolean that indicates whether the value should be validated against the expected type or not. If `true`, a `MetaTypeValidator` is added to the Meta type, which checks that the main value matches the Meta type. Default value is `true`. &nbsp; `noBuiltinValidators?: boolean` - A boolean that indicates whether the built-in validators should be disabled or not. If `true`, the Meta type will not use any of the default validators, like `MetaTypeValidator` or NullableValidator. Default value is `false`. &nbsp; `noBuiltinSerializers?: boolean` - A boolean that indicates whether the built-in serializers should be disabled or not. If `true`, the Meta type will not use any of the default serializers, like `CoercionSerializer`. Default value is `false`. &nbsp; `noBuiltinDeSerializers?: boolean` - A boolean that indicates whether the built-in deserializers should be disabled or not. If `true`, the Meta type will not use any of the default deserializers, like `CoercionSerializer` or `ToLowerCaseSerializer` (case argument in STRING). Default value is `false`. &nbsp; `validators?: (ValidatorType | ValidatorFuncType)[]` - An array of validators that are used to check the value when it is assigned to an object property. ```typescript type ValidatorFuncType = (validateArgs: ValidatorArgsType) => boolean type ValidatorType = { name?: string validate: ValidatorFuncType } ``` > You can read about validation and ValidatorArgsType in the following section: [Validation](#validation) &nbsp; `serializers?: (SerializerType | SerializeFuncType)[]` - An array of serializers that change the value when it is retrieved from the object. For example, `obj['prop']` or `Meta.serialize(obj)`. ```typescript type SerializeFuncType = (serializeArgs: SerializerArgsType) => any type SerializerType = { serialize: SerializeFuncType name?: string serializePlaces?: ('get' | 'serialize' | 'unknown')[] | string[] } ``` > You can read about serialization and SerializerArgsType in the following section: [Serialization and Deserialization](#serialization-and-deserialization) &nbsp; `deserializers?: (DeSerializerType | DeSerializeFuncType)[]` - An array of deserializers that modify the value when it is set to an object property, prior to validation. For example, `obj['prop'] = 'value'` or `Meta.deserialize(metaObject, rawObject)`. ```typescript type DeSerializeFuncType = (deserializeArgs: DeSerializerArgsType) => any type DeSerializerType = { serialize: DeSerializeFuncType name?: string deserializePlaces?: ('init' | 'reinit' | 'set' | 'deserialize' | 'unknown')[] | string[] } ``` > You can read about deserialization and DeSerializerArgsType in the following section: [Serialization and Deserialization](#serialization-and-deserialization) &nbsp; ### Built-in Meta Types Each built-in Meta type has `args?: MetaTypeArgs` at the end of arguments. How to use it you can see below. &nbsp; #### ANY ```typescript import { ANY, Meta } from 'metatyper' const obj1 = Meta({ a: ANY({ nullish: true }) }) // as { a: any } obj1.a = 1 obj1.a = {} ``` &nbsp; #### BOOLEAN ```typescript import { BOOLEAN, Meta } from 'metatyper' const obj = Meta({ someField: BOOLEAN({ default: false, // BooleanMetaTypeArgs trueValues: [1], // will replace 1 with true falseValues: [(value) => value === 0] // will replace 0 with false }) }) // as { someField: boolean } obj.someField = true obj.someField = 1 as boolean obj.someField = 'true' // type & validation error ``` &nbsp; #### STRING ```typescript import { Meta, STRING } from 'metatyper' const obj = Meta({ someField: STRING({ nullish: true, // StringMetaTypeArgs notEmpty: true, // == minLength: 0 minLength: 0, maxLength: 10, regexp: '^[a-zA-Z]+$', // validate using this regular expression toCase: 'lower' // serialize to lowercase (or 'upper') }) }) // as { someField?: string | null | undefined } obj.someField = 'STR' // will serialize to lowercase obj.someField = 1 // type & validation error ``` &nbsp; #### NUMBER ```typescript import { Meta, NUMBER } from 'metatyper' const obj = Meta({ someField: NUMBER({ nullish: true, // NumberMetaTypeArgs min: 1, // value >= 1 max: 9, // value <= 9 greater: 0, // value > 0 less: 10 // value < 10 }) }) // as { someField?: number | null | undefined } obj.someField = 1.2 obj.someField = 11 // validation error obj.someField = 'str' // type & validation error ``` &nbsp; #### INTEGER ```typescript import { INTEGER, Meta } from 'metatyper' const obj = Meta({ someField: INTEGER({ nullish: true, // NumberMetaTypeArgs min: 1, // value >= 1 max: 9, // value <= 9 greater: 0, // value > 0 less: 10 // value < 10 }) }) // as { someField?: number | null | undefined } obj.someField = 1 obj.someField = 11 // validation error obj.someField = 1.1 // validation error ``` &nbsp; #### BIGINT ```typescript import { BIGINT, Meta } from 'metatyper' const obj = Meta({ someField: BIGINT({ nullish: true, // NumberMetaTypeArgs min: 1, // value >= 1 max: 9, // value <= 9 greater: 0, // value > 0 less: 10 // value < 10 }) }) // as { someField?: bigint | null | undefined } obj.someField = 1n obj.someField = 11n // validation error obj.someField = 1 // type and validation error ``` &nbsp; #### DATE ```typescript import { DATE, Meta } from 'metatyper' const obj = Meta({ someField: DATE({ nullish: true, // DateMetaTypeArgs min: 1, // value >= new Date(1) max: new Date(), // value <= new Date() greater: 0, // value > new Date(0) less: 10n // value < new Date(10) }) }) // as { someField?: Date | null | undefined } obj.someField = new Date(1) obj.someField = 1 // type and validation error ``` &nbsp; #### LITERAL ```typescript import { LITERAL, Meta } from 'metatyper' const obj = Meta({ someField: LITERAL(1, { nullish: true }) }) // as { someField?: 1 | null | undefined } obj.someField = 1 obj.someField = 2 // type and validation error ``` &nbsp; #### INSTANCE ```typescript import { Meta, INSTANCE } from 'metatyper' class A { a = 1 } class B extends A { b = 2 } const obj = Meta({ someField: INSTANCE(B, { nullish: true // InstanceMetaTypeArgs allowChildren: false // disallow the use of children B, default: true }) }) // as { someField?: B | null | undefined } obj.someField = new B() // ok obj.someField = new A() // validation error obj.someField = {} // type and validation error obj.someField = B // type and validation error ``` &nbsp; #### UNION ```typescript import { BOOLEAN, Meta, STRING, UNION } from 'metatyper' const obj = Meta({ someField: UNION([BOOLEAN({ nullable: true }), STRING({ optional: true })]) }) // as { someField: (boolean | null) | (string | undefined) } obj.someField = true // ok obj.someField = new Date() // type and validation error ``` &nbsp; #### ARRAY ```typescript import { Meta, ARRAY, BOOLEAN, STRING } from 'metatyper' const obj = Meta({ someField: ARRAY( [ BOOLEAN({ default: null, nullable: true }), STRING({ optional: true }) ], { nullish: true, // ArrayMetaTypeArgs notEmpty: true, // == minLength: 0 minLength: 0, maxLength: 10, freeze: true, // will create a frozen copy when deserializing serializeSubValues: false // default: true } ) someField2: ARRAY(STRING(), { default: [] }) }) /* as { someField: | readonly (boolean | null | string | undefined)[] | null | undefined someField2: string[] } */ obj.someField = ['1', '2'] // ok obj.someField = [1, '1'] // type and validation error ``` &nbsp; #### TUPLE ```typescript import { Meta, STRING, TUPLE } from 'metatyper' const obj = Meta({ someField: TUPLE([false, STRING({ optional: true })], { nullish: true, // TupleMetaTypeArgs freeze: true, // will create a frozen copy when deserializing serializeSubValues: false // default: true }) }) /* as { someField: | readonly [ boolean, string | undefined ] | null | undefined } */ obj.someField = [true, '1'] // ok obj.someField = ['1', true] // type and validation error ``` &nbsp; #### OBJECT ```typescript import { Meta, OBJECT, STRING, BOOLEAN } from 'metatyper' const obj = Meta({ someField: OBJECT({ a: 1, b: 'string', c: BOOLEAN(), d: { e: STRING({ optional: true }), f: OBJECT({}) } }, { nullish: true, // ObjectMetaTypeArgs freeze: true, // will create a frozen copy when deserializing required: ['a', 'b', 'c'], // by default all fields are required serializeSubValues: false // default: true }) someField2: OBJECT(BOOLEAN(), { optional: true }) }) /* as { someField: { readonly a: number readonly b: string readonly c: boolean readonly d?: { e?: string f: Record<string, any> } } someField2?: Record<string, boolean> } */ obj.someField = { a: 2, b: 'str', c: false, d: { // e: 'optional field' f: { anyField: true } } } obj.someField = { a: 2, b: 'str', // type and validation error, `c` is not an optional field } obj.someField2 = { anyField: true } ``` &nbsp; #### Recursive structures Meta types like `OBJECT`, `ARRAY`, `TUPLE` and `UNION` inherited from `StructuralMetaTypeImpl`. So, it allows to create a recursive structures like this: &nbsp; Use argument to create a REF ```typescript import { Meta, OBJECT } from 'metatyper' OBJECT((selfImpl) => { type MyObjectType = { // ... any fields self?: MyObjectType } return { // ... any fields self: selfImpl as any } as MyObjectType }) // OBJECT(g4dv1h)<{ self: REF<g4dv1h> }> ``` > Be careful, `selfImpl` is of type `ObjectImpl` &nbsp; Use a variable to create a REF ```typescript import { Meta, OBJECT } from 'metatyper' type MyType = { // ... any fields self?: MyType } const myType: OBJECT<MyType> = OBJECT(() => { return { // ... any fields self: myType } }) // OBJECT(g4dv1h)<{ self: REF<g4dv1h> }> ``` &nbsp; Use recursive structures to create a REF ```typescript import { Meta, OBJECT } from 'metatyper' type MyType = { // ... any fields self?: MyType } const myTypeSchema: MyType = { /* any fields */ } myTypeSchema.self = myTypeSchema OBJECT(myTypeSchema) // OBJECT(g4dv1h)<{ self: REF<g4dv1h> }> ``` &nbsp; And of course you can create more complex structures like this ```typescript import { Meta, OBJECT, STRING, TUPLE } from 'metatyper' const myObjectType = OBJECT((selfImpl) => { type MyTuple = [MyObjectType, string, MyTuple] type MyObjectType = { a: number b: { selfImpl: MyObjectType } c: MyObjectType[] d: MyTuple } const myObjectSchema: any = { a: 1, b: { selfImpl }, c: null, d: TUPLE((selfImpl) => [myObjectType, STRING(), selfImpl]) } myObjectSchema.c = [myObjectSchema, selfImpl, myObjectType] return myObjectSchema as MyObjectType }) console.log(myObjectType.toString()) /* OBJECT(n6f76)<{ a: NUMBER, b: OBJECT(jqrb3)<{ selfImpl: REF<n6f76> }>, c: ARRAY(pugop)< UNION(ljwth)< REF<n6f76> | REF<n6f76> | REF<n6f76> >[] >, d: TUPLE(zwgxz)<[ REF<n6f76>, STRING, REF<zwgxz> ]> }> */ ``` > `REF` - another optional type that works like a proxy. Recursive value is not available now. You need to provide `undefined` value instead of recursive reference. e.g. ```typescript // OBJECT( (myObjImpl) => ({ myObj: myObjImpl }) ) const myObj = { myObj: { myObj: { myObj: undefined } } } ``` &nbsp; ### Validation Meta objects come with built-in validation capability. Validators specific to each Meta type are utilized during the validation process. If validation fails, an exception is raised. For more information on validation errors, refer to the [Errors](#errors) section. Validators for Meta types are categorized into: - **Built-in Validators**: For example, `STRING` Meta type uses `MinLengthValidator`, configurable via the `minLength` argument. - **Runtime Validators**: These are provided as arguments at runtime to the Meta type. For more details on the arguments accepted by Meta types, see the [MetaTypeArgs](#metatypeargs) section. Validation occurs automatically when assigning new values to a Meta object. Additionally, you can explicitly validate another object using the method: ```typescript Meta.validate( metaObjectOrSchema: Meta<object> | object, rawObject: object, validateArgs?: { safe?: boolean, stopAtFirstError?: boolean } ) => boolean ``` **Example**: ```typescript import { Meta } from 'metatyper' const schema = { id: 0, name: STRING({ validators: [ /* validators here */ ] }) } Meta.validate(schema, { id: '351', name: null }) // throws MetaTypeValidatorError ``` &nbsp; #### Validators A validator is an object that contains a `validate` method: ```typescript type ValidatorType = { name?: string validate: (args: ValidatorArgsType) => boolean } type ValidatorArgsType = { value: any metaTypeImpl?: MetaTypeImpl propName?: string | symbol targetObject?: object baseObject?: object safe?: boolean stopAtFirstError?: boolean } & Record<string, any> ``` - `value`: The value to be validated. - `metaTypeImpl`: The Meta type implementation invoking this validator. - `propName`: Specified when using Meta objects for validation. - `targetObject`: The object that needs to be validated. - `baseObject`: The object that contains the Meta type declaration with this validator. - `safe`: Determines whether a validation error should throw an exception. - `stopAtFirstError`: Specifies if validation should cease after the first error. Defaults to true. &nbsp; #### Disabling Validation Validation can be disabled using the methods below: Method 1 ```typescript Meta.validationIsActive(metaObj) === true Meta.disableValidation(metaObj) Meta.validationIsActive(metaObj) === false metaObj.myProp = 0 // This is now allowed. Meta.enableValidation(metaObj) ``` Method 2 ```typescript @Meta.Class() class MyClass2 { myProp = MyType({ validators: [], // Set empty array noBuiltinValidators: true // Disables the built-in validators like MetaTypeValidator or MinLengthValidator }) } ``` &nbsp; ### Serialization and Deserialization Serialization and deserialization of values are handled by Meta type's serializers and deserializers. Serialization is performed when retrieving a property’s value, whereas deserialization occurs during value assignment. Direct invocation of serialization and deserialization is also supported through specific methods: ```typescript Meta.serialize = ( metaObject: Meta<T> | T, serializeArgs?: { metaArgs?: MetaArgs } ): { [key in keyof T]: any } ``` > You can specify the `serialize` result type: `Meta.serialize<{ a: number }>(...)` ```typescript Meta.deserialize = ( metaObjectOrProto: Meta<T> | T, rawObject: object, deserializeArgs?: { metaArgs?: MetaArgs } ): Meta<T> ``` &nbsp; **Example**: ```typescript import { Meta } from 'metatyper' const objToSerialize = { id: '351', date: new Date(123) } const objToDeSerialize = Meta.serialize<{ id: string date: number }>({ id: '', name: DATE({ coercion: true }) }, objToSerialize) // objToDeSerialize now equals { id: '351', date: 123 } Meta.deserialize({ id: '', name: DATE({ coercion: true }) }, objToDeSerialize) // returns Meta({ id: '351', date: new Date(123) }) ``` &nbsp; #### Serializers and Deserializers A **serializer** is an object with a `serialize` method, and a **deserializer** likewise has a `deserialize` method: ```typescript type SerializerArgsType = { value: any metaTypeImpl?: MetaTypeImpl propName?: string | symbol targetObject?: object baseObject?: object place?: SerializePlaceType } type SerializerType = { serialize: (serializeArgs: SerializerArgsType) => any name?: string serializePlaces?: SerializePlaceType[] } ``` ```typescript type DeSerializerArgsType = { value: any metaTypeImpl?: MetaTypeImpl propName?: string | symbol targetObject?: object baseObject?: object place?: DeSerializePlaceType } type DeSerializerType = { deserialize: (deserializeArgs: DeSerializerArgsType) => any name?: string deserializePlaces?: DeSerializePlaceType[] } ``` Each field's purpose in both serializers and deserializers closely aligns with those in [validators](#validators), specifying the object context and invoking Meta type implementation. Serialization and deserialization processes can be adjusted depending on their specific use cases with the help of `SerializePlaceType` and `DeSerializePlaceType`. This allows for a more precise control over how and where these processes occur. The term "place" refers to the specific scenario in which serialization occurs. `SerializePlaceType` indicates various contexts where serialization can happen: - `get`: This is used when retrieving a property, for example, accessing a property like `obj.prop`. - `serialize`: This context is applied during the serialization of an object, such as when using `Meta.serialize(obj)`. - `unknown`: This default setting is used for custom serialization logic that does not fit the other predefined contexts. Similarly, `DeSerializePlaceType` outlines different scenarios for deserialization: - `init`: Indicates the initialization of a new type declaration, like starting a Meta object with `Meta({ prop: 'value' })`. - `reinit`: Used when re-initializing type declarations by defining a new Meta type, for example, changing a property's type with `obj.prop = NUMBER()`. - `set`: Applies when setting a new property value, such as `obj.prop = 1`. - `deserialize`: This context is for deserializing an object, done like `Meta.deserialize(obj, rawData)`. - `unknown`: The default setting for custom deserialization logic that doesn't align with the specified contexts. &nbsp; #### Disable Serialization To disable serialization or deserialization: Method 1 ```typescript Meta.serializationIsActive(metaObject) === true Meta.disableSerialization(metaObject) Meta.serializationIsActive(metaObject) === false metaObject.myProp = 0 // Deserialization does not occur. Meta.enableSerialization(metaObject) ``` Method 2 ```typescript @Meta.Class() class MyClass2 { myProp = MyType({ serializers: [], // Empty array disables serializers deserializers: [], // Empty array disables deserializers noBuiltinSerializers: true, // Disables all built-in serializers like Coercion noBuiltinDeSerializers: true // Disables all built-in deserializers like Coercion }) } ``` &nbsp; #### Types Coercion Meta types have coercion capabilities upon serialization and deserialization. This is particularly handy for handling various value types such as dates in JSON data. > `undefined` and `null` values will not be converted &nbsp; These built-in metatypes support coercion: &nbsp; ##### BOOLEAN coercion ```typescript BOOLEAN({ coercion: true }) ``` `Meta.deserialize` will cast `value` to `!!value`. &nbsp; ##### STRING coercion ```typescript STRING({ coercion: true }) ``` `Meta.deserialize` will cast any `value` to string. > For the date value, `value.toISOString()` will be used &nbsp; ##### NUMBER coercion ```typescript NUMBER({ coercion: true }) ``` `Meta.deserialize` will cast `value` depending on the type of the value: - `Date` -> `value.getTime()` - `bigint` -> `Number(value)` - `string` -> `Number(value)` - `boolean` -> `Number(value)` &nbsp; ##### INTEGER coercion ```typescript INTEGER({ coercion: true }) ``` `Meta.deserialize` will cast `value` depends on the type of the value: - `Date` -> `value.getTime()` - `bigint` -> `Number(value)` - `string` -> `Number(value)` - `boolean` -> `Number(value)` - `number` -> `Math.trunc(value)` &nbsp; ##### BIGINT coercion ```typescript BIGINT({ coercion: true }) ``` `Meta.deserialize` will cast `value` depends on the type of the value: - `Date` -> `BigInt(value.getTime())` - `string` -> `BigInt(value)` - `boolean` -> `BigInt(value)` - `number` -> `BigInt(Math.trunc(value))` `Meta.serialize` will cast `value` to `string`. &nbsp; ##### DATE coercion ```typescript DATE({ coercion: true }) ``` `Meta.deserialize` will cast `value` depends on the type of the value: - `bigint` -> `new Date(Number(value))` - `number` -> `new Date(value)` - `string` -> `new Date(value)` `Meta.serialize` will cast `value` to timestamp (`value.getTime()`). &nbsp; ### Errors When working with Meta objects, you may encounter a range of errors. These can be broadly categorized into standard errors, such as `TypeError('Cannot assign to read only property ...')`, and specialized errors unique to the handling of Meta objects. Understanding these errors and their hierarchy is crucial for effectively managing exceptions and maintaining robust code. Specialized errors fall under the umbrella of `MetaError` and include: &nbsp; #### MetaTypeSerializationError `MetaTypeSerializationError` serves as an extended version of `MetaError`, focusing specifically on the identification and handling of serialization errors. Its main purpose is to allow developers to pinpoint serialization issues distinctively using `instanceof` checks. This differentiation is crucial for separating serialization errors from others, like validation errors, enhancing debugging efficiency. &nbsp; #### MetaTypeSerializerError When it comes to serialization of Meta type data, encountering errors is a possibility. The `MetaTypeSerializerError` is designed to throw an exception in such cases. This error aims to simplify the debugging process and error handling by offering in-depth information about where and why the failure occurred. Key fields of the `MetaTypeSerializerError`: - **serializer**: This property provides a direct link to the `SerializerType` instance responsible for the error. This allows developers to easily identify which serializer was involved in the process and potentially inspect its configuration or state at the time of failure. - **serializerErrorArgs**: Holding the type `SerializerErrorArgsType`, this property delivers a detailed look at the arguments fed into the serialization function at the error's occurrence. These arguments cover a range of information, from the value being serialized, the property's name, the target object, to additional options affecting serialization. Within `serializerErrorArgs`, there's a `subError` field holding an `Error` instance, shedding light on the precise cause of the serialization failure. This layered error reporting strategy significantly aids in debugging by providing a clear context of the error beyond merely indicating its occurrence. ```typescript type SerializerErrorArgsType = { value: any subError?: Error propName?: string | symbol targetObject?: object baseObject?: object place?: SerializePlaceType metaTypeImpl?: MetaTypeImpl } & Record<string, any> ``` &nbsp; #### MetaTypeDeSerializerError Mirroring the `MetaTypeSerializerError`, the `MetaTypeDeSerializerError` addresses errors during the deserialization of Meta type data. This exception is crucial for developers aiming to resolve issues arising from converting serialized data back into a usable form within the application. Key fields of the `MetaTypeDeSerializerError`: - **deserializer**: Reflecting the `serializer` attribute in `MetaTypeSerializerError`, this field links to the deserializer instance that encountered the error, facilitating an understanding of which deserialization logic didn't succeed. - **deserializerErrorArgs**: As `DeSerializerErrorArgsType`, this attribute documents the arguments present at the deserialization function during the error event. Providing a comprehensive context, these arguments include the value being deserialized, relevant property names, and the objects involved, among others. ```typescript type DeSerializerErrorArgsType = { value: any subError?: Error propName?: string | symbol targetObject?: object baseObject?: object place?: DeSerializePlaceType metaTypeImpl?: MetaTypeImpl } & Record<string, any> ``` &nbsp; #### MetaTypeValidationError `MetaTypeValidationError` functions as an enhanced variant of `MetaError`, specifically dedicated to identifying and managing validation errors. Its primary role is to enable developers to efficiently distinguish validation errors from other types, such as serialization or deserialization errors, through `instanceof` checks. This specificity is vital for streamlined error handling and debugging processes. &nbsp; #### MetaTypeValidatorError During the validation process of Meta type data, it's plausible to encounter failures. The `MetaTypeValidatorError` is thrown in such scenarios to indicate a validation issue. The uniqueness of this error, compared to `MetaTypeValidatorsArrayError`, is determined by the function arguments during validation. Specifically, setting `stopAtFirstError: false` in the function arguments collects all encountered validation errors, encapsulating them within a `MetaTypeValidatorsArrayError` containing multiple `MetaTypeValidatorError` instances. Key fields of the `MetaTypeValidatorError`: - **validator**: This field connects directly to the `ValidatorType` that generated the error, allowing developers to identify and investigate the specific validator causing the issue. - **validatorErrorArgs**: Holding the `ValidatorErrorArgsType`, this attribute provides a detailed account of the circumstances leading to the validation error. Information includes the value under validation, property names, the involved objects, and optionally, a subError detailing the underlying cause of failure, if applicable. Additionally, it may indicate whether the validation was set to stop at the first error or continue to gather all errors. ```typescript type ValidatorErrorArgsType = { value: any subError?: Error propName?: string | symbol targetObject?: object baseObject?: object metaTypeImpl?: MetaTypeImpl stopAtFirstError?: boolean } & Record<string, any> ``` &nbsp; #### MetaTypeValidatorsArrayError Mirroring scenarios in which `MetaTypeValidatorError` arises, the `MetaTypeValidatorsArrayError` is thrown when multiple validation errors are encountered during the checking of Meta type data. This exception is particularly generated when the validation function’s argument `stopAtFirstError` is set to `false`, allowing the accumulation of all validation errors into a single `MetaTypeValidatorsArrayError`. This error then contains an array of `MetaTypeValidatorError` instances, providing a comprehensive overview of all validation issues detected. Key fields of the `MetaTypeValidatorsArrayError`: - **validatorsErrors**: This attribute is an array of `MetaTypeValidatorError` instances, each detailing a specific validation failure encountered during the process. This collection offers a broad perspective on the nature and extent of validation issues, facilitating thorough error resolution. &nbsp; ## Similar Libraries There are many other popular good libraries that perform similar functions well. If you require specific functionality, you can explore various validation libraries (eg Zod) or type collections (eg Type-fest). Moreover, you have the flexibility to integrate the best features from these libraries alongside MetaTyper to achieve best outcomes. These libs are worth a look: - class-validator - io-ts - joi - ow - runtypes - ts-toolbelt - type-fest - yup - zod &nbsp; ## Change Log Stay updated with the latest changes and improvements: [GitHub Releases](https://github.com/metatyper/metatyper/releases).
The MetaTyper project provides a powerful approach to using runtime types in TypeScript and JavaScript code.
javascript,schema,serialization,types,typescript,validation
2024-02-10T18:49:43Z
2024-02-15T09:35:02Z
2024-02-13T18:03:07Z
1
1
15
0
0
3
null
MIT
TypeScript
stevechainer/my-portofolio-page
dev
![Portfolio](https://github.com/MD-MAFUJUL-HASAN/Personal-Portfolio/blob/main/src/images/portfolio.png) # Getting Started with Create React App [![Netlify Status](https://api.netlify.com/api/v1/badges/405ac925-c23d-4079-985f-f0b7ceb21ffb/deploy-status)](https://app.netlify.com/sites/tonmoysu/deploys) ## [Portfolio Live on Netlify and Vercel app🎯](https://tonmoysu.netlify.app/) This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). ## Available Scripts In the project directory, you can run: ### `npm start` Runs the app in the development mode.\ Open [http://localhost:3000](http://localhost:3000) to view it in your browser. The page will reload when you make changes.\ You may also see any lint errors in the console. ### `npm test` Launches the test runner in the interactive watch mode.\ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. ### `npm run build` Builds the app for production to the `build` folder.\ It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.\ Your app is ready to be deployed! See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. ### `npm run eject` **Note: this is a one-way operation. Once you `eject`, you can't go back!** If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. ## Learn More You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). To learn React, check out the [React documentation](https://reactjs.org/). ### Code Splitting This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) ### Analyzing the Bundle Size This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) ### Making a Progressive Web App This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) ### Advanced Configuration This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) ### Deployment This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) ### `npm run build` fails to minify This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Portofolio website page using react.
portofolio,react,yarn,css,html,javascript
2024-01-26T13:32:27Z
2024-01-28T22:01:32Z
null
1
3
26
0
0
3
null
null
JavaScript
boywithkeyboard/gatewayapi
main
null
JavaScript SDK for 📬 gatewayapi
deno,gatewayapi,javascript,js,nodejs,sdk,sms,sms-api,sms-gateway,sms-service
2024-02-17T20:02:12Z
2024-05-15T11:50:29Z
2024-03-23T16:19:08Z
2
26
35
0
1
3
null
Apache-2.0
TypeScript
anurag87204/PASSWORD-GENERATOR
main
Password-Generator A password generator that generates 16 characters of strong passwords that no one can access of it. # The Idea behind this poject 💡 This was just a creative project. The color theme is green/turquoise: like an "Tech / Hacker / Security" theme. # What I learned 🧠 How to select HTML element in the DOM Heavily focused on the JavaScript Loops Working with functions How it looks 🎥Password-Generator A password generator that generates 16 characters of strong passwords that no one can access of it. # The Idea behind this poject 💡 This was just a creative project. The color theme is green/turquoise: like an "Tech / Hacker / Security" theme. # What I learned 🧠 How to select HTML element in the DOM Heavily focused on the JavaScript Loops Working with functions How it looks 🎥 https://github.com/anurag87204/PASSWORD-GENERATOR/assets/84726281/887bb172-da82-4bcf-b3b0-80cf989dfd6f
A password generator that generates 16 characters of strong passwords that no one can access of it.
css3,html5,javascript,password,password-generator,security,tech
2024-01-25T16:57:10Z
2024-01-25T17:35:44Z
null
1
0
5
0
0
3
null
MIT
CSS
autruonggiang/create-a-vr-solar-system-with-a-frame
main
# Create a VR Solar System with A-Frame Creating a Virtual Reality (VR) Solar System using A-Frame involves building a 3D environment that simulates the celestial bodies in our solar system. A-Frame is a web framework for building virtual reality experiences, and it leverages HTML and JavaScript for ease of development. ## Resources - [Codédex article](https://www.codedex.io/projects/create-a-vr-solar-system-with-a-frame) - [GitHub repository for this project](https:./github.com/codedex-io/projects/tree/main/projects/create-a-vr-solar-system-with-a-frame) - [A-Frame documentation](https://aframe.io/docs/1.5.0/introduction/) - [More about WebVR (WebXR) experiences](https://en.wikipedia.org/wiki/WebXR)
Creating a Virtual Reality (VR) Solar System using A-Frame involves building a 3D environment that simulates the celestial bodies in our solar system. A-Frame is a web framework for building virtual reality experiences, and it leverages HTML and JavaScript for ease of development.
javascript,mdx,solar-system,virtual-reality,vr
2024-03-12T15:26:39Z
2024-03-13T04:46:55Z
null
1
0
8
0
0
3
null
null
MDX
faizm10/Portfolio-Website
main
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Getting Started First, run the development server: ```bash npm run dev # or yarn dev # or pnpm dev # or bun dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. ## Learn More To learn more about Next.js, take a look at the following resources: - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! ## Deploy on Vercel The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
null
javascript,nextjs,portfolio-website,tailwindcss
2024-03-12T22:17:41Z
2024-04-12T16:46:07Z
null
1
1
35
2
0
3
null
null
TypeScript
ilkaytech/MERN-BLOG
main
# MERN-BLOG ## Outcome 🔗 [Live - ilkaytech's Blog](https://mern-blog-ysv8.onrender.com) - email: admin@site.com - password: aA?123456 ### Blog: ![blog](./blog1.png) ### Dashboard: ![blog](./dashboard.png) ### Sign-In: ![sign-in](./sign-in.png) ### Sign-Up: ![sign-up](./sign-up.png)
Blog App with Dashboard
crud,express-js,firebase-auth,google-auth,javascript,jwt-token,mongodb,mongoose,node-js,react
2024-02-02T16:56:52Z
2024-02-27T22:01:00Z
null
1
0
55
0
0
3
null
null
JavaScript
obirikan/decoupled-services
master
A very simple microservice architecture
a simple microservice architecture implemented with nodejs and RabbitMQ as message broker and wss as real time transmission on client side
docker-compose,javascript,rabbitmq,websocket
2024-03-02T22:53:51Z
2024-04-21T22:01:22Z
null
1
0
5
0
0
3
null
null
JavaScript
HuzaifaIlyas02/Netflix-Clone
main
# Netflix Clone This project is a simplified front end clone of Netflix. It was created with ReactJS and uses The Movie Database (TMDB) API to search for movies and display details. It's responsive and functions well on devices of various sizes. ## 📦 Technologies - `ReactJS` - `TMDB API` - `Firebase (Hosting and Deployment)` - `Axios (API Requests)` - `React-Youtube (YouTube Video Integration)` - `Movie-Trailer (YouTube Trailer Retrieval)` ## Features - **Responsive Design**: Works well on a variety of devices and window or screen sizes. - **Interactive Movie Trailers**: Users can watch movie trailers by clicking on the movie card. ## 🔨 The Process I began with the initialization of the project using Create React App. This set the stage for a seamless development experience with ReactJS. After setting up the project, I then proceeded to create a repository on GitHub to manage version control and track the development progress. The next crucial step was to establish a connection with the TMDB API. Utilizing Axios, I integrated the API to fetch a vast array of movie data, which would form the backbone of the content displayed on the clone. With the API connection in place, I focused on the development of the UI components. This involved creating an intuitive search bar for real-time search functionality, as well as designing movie cards that would display the movie information in an aesthetically pleasing manner. To replicate a core feature of Netflix, I integrated React-Youtube and Movie-Trailer. This allowed users to view movie trailers directly within the app, providing an interactive and immersive experience by clicking on the movie cards. To make the app better, I tested and adjusted it carefully to ensure that all the features worked well together. My aim was to create a smooth experience for users, from watching trailers. The final step was to deploy the application using Firebase. This made the Netflix clone publicly accessible and marked the culmination of the development process. The deployment process was also a learning experience, teaching me the nuances of making a ReactJS application live. During this process, I carefully documented each step and what I learned from it. This helped me remember and understand better. It's a practice that has really helped me improve as a developer. ## 📚 What I Learned ### 💡 ReactJS Proficiency: - Component-Based Architecture - State Management - Hooks and Lifecycle Methods - Routing - Prop Handling ### 🌐 API Integration: - Fetching Data from APIs - API Error Handling ### ⏱️ Asynchronous Programming: - Promises and Async/Await ### 🚢 Deployment: - Firebase Setup and Configuration - Continuous Deployment - Environment Configuration - Troubleshooting Deployment Issues ## 💭 How can it be improved? - Add navigation links for different categories like TV Shows, Movies, Recently Added, and My List for easier content accessibility. - Implement a search option to allow users to quickly find specific movies or TV shows. - Introduce a login system to provide a personalized experience for users. - Add features like user ratings, comments, and the ability to create personal watchlists. - Work on improving the app's performance for faster load times and smoother navigation. ## 🚦Running the Project To run the project in your local environment, follow these steps: 1. Clone the repository. 2. Run `npm install` or `yarn` in the project directory to install the required dependencies. 3. Navigate to the folder `cd netflix-clone`. 4. Run the project using `npm start`. For an overview of the app and its functionalities, please visit [App Overview](https://netflixclone-1db57.web.app/). ## ⚠️ Caution The website might trigger a security warning, but please note that there is no such issue, and it is safe to proceed. Enjoy the application! ## 🍿 Video https://github.com/HuzaifaIlyas02/Netflix-Clone/assets/86406012/a7b35a93-b7f3-484c-898e-8d7207775423
A Netflix Clone built with ReactJs
axios,firebase,javascript,movie-trailer,react-youtube,reactjs,tmdb-api
2024-02-01T12:42:44Z
2024-02-06T15:27:21Z
null
1
0
11
0
0
3
null
null
JavaScript
Sameen-K-A/Furnix
main
null
FURNIX is an online e-commerce website for purchasing furniture.
authenticator,cart,chartjs,coupons,easyinvoice,ejs,javascript,mongodb,nodejs,nodemailer
2024-01-29T06:41:58Z
2024-03-26T10:36:15Z
null
1
0
59
0
1
3
null
null
EJS
amndalsr/ChallengeONE-DecodificadorDeTexto
main
# Challenge ONE - Oracle + Alura ## Decodificador de Texto - Desafio #1 ☁️ Deploy: <a href="https://challenge-one-decodificador-de-texto-peach.vercel.app">Decodificador de Texto</a> ### 🚀 Sobre o Desafio As "chaves" de criptografia utilizadas são: - A letra "a" é convertida para "ai" - A letra "e" é convertida para "enter" - A letra "i" é convertida para "imes" - A letra "o" é convertida para "ober" - A letra "u" é convertida para "ufat" ✅ Requisitos cumpridos: - Deve funcionar apenas com letras minúsculas; - Não devem ser utilizados letras com acentos nem caracteres especiais; - Deve ser possível converter uma palavra para a versão criptografada e também retornar uma palavra criptografada para a versão original; - Um botão que copie o texto criptografado/descriptografado para a área de transferência - ou seja, que tenha a mesma funcionalidade do ctrl+C ou da opção "copiar" do menu dos aplicativos; - Extra! (Um rodapé com os dados da pessoa que desenvolveu o site). ![decoder](https://github.com/amndalsr/ChallengeONE-DecodificadorDeTexto/assets/72527935/f03f6a07-cd64-449c-b195-99a25c422c07)
Decodificador de texto
css,html,javascript,challengedecodificador5,alura,onenexteducation,oracle
2024-02-05T01:50:35Z
2024-05-05T19:39:45Z
null
1
0
26
0
1
3
null
MIT
CSS
NitinVadadoriyaa/JerryKickStart
master
# JerryKickStart JerryKickStart is Ethereum based (BlockChain) Crowdfunding platform that help entrepreneur to raise funds for projects, ventures, or causes by collecting small contributions from a large number of people. ## Technolgoy Stack **Platform:** Ethereum. **Client:** Next JS. **Server:** Node JS. **Database:** Sepolia Ethereum BlockChain. ## Demo We will update very soon! ## Screenshots ![ScreenShot](https://github.com/NitinVadadoriyaa/JerryKickStart/blob/master/screenshort/campaign-detail.png) ## Run Locally Clone the project ```bash git clone https://github.com/NitinVadadoriyaa/JerryKickStart ``` Go to the project directory ```bash cd KichStart ``` Install dependencies ```bash npm install ``` Start the server ```bash npm run dev ``` Start the client ```bash //open browser and type url http://localhost:3000 ``` ## NOTE If you want to interact with your own smart-contract then you can follow follwing step. 1. Modify kickstart/ethereum/contracts/Campaign.sol and test on Remix IDE. 2. Run /kickstart/ethereum/deploy.js for deploy your smart contract on Sepolia-Ethereum-BlockChain (hear you have to give your `12 word mnemonic` for unlock account and `node api`, where you will deploy your contract `[i used infura api in this project]`). Command For Run : ```base node deploy.js ``` 3. After deploy you get smart-contract address ,that you have to replace with exiting address in `/kickstart/ethereum/factory.js`. ## Features - Home Page ![ScreenShot](https://github.com/NitinVadadoriyaa/JerryKickStart/blob/master/screenshort/home.png) - Campaign Details ![ScreenShot](https://github.com/NitinVadadoriyaa/JerryKickStart/blob/master/screenshort/campaign-detail.png) - Create New Campaign ![ScreenShot](https://github.com/NitinVadadoriyaa/JerryKickStart/blob/master/screenshort/create-new-campaign.png) - Campaign Requests List ![ScreenShot](https://github.com/NitinVadadoriyaa/JerryKickStart/blob/master/screenshort/campagin-request-list.png) - Create New Request ![ScreenShot](https://github.com/NitinVadadoriyaa/JerryKickStart/blob/master/screenshort/create-new-request.png) - MetaMask Request ![ScreenShot](https://github.com/NitinVadadoriyaa/JerryKickStart/blob/master/screenshort/meta-mask-configuration.png) ## Made By NitinVadadoriya ![Logo](https://github.com/NitinVadadoriyaa/JerryKickStart/blob/master/icons8-ethereum-144.png)
JerryKickStart is Ethereum based (BlockChain) Crowdfunding platform that help entrepreneur to raise funds for projects, ventures, or causes by collecting small contributions from a large number of people.
blockchain-technology,campaign,crowdfunding,donations,ether,ethereum,ethereum-contract,ethereum-dapp,funding,javascript
2024-03-04T17:36:46Z
2024-05-02T14:28:28Z
null
1
0
21
0
0
3
null
null
JavaScript
kodercoding/NETFLIX-clone
main
null
This GitHub repository hosts a Netflix clone project created with HTML, CSS, and JavaScript. The clone closely mimics the user interface and functionality of the popular streaming service Netflix, allowing users to browse through a catalog of movies and TV shows, view details, and watch trailers.
css,html,html-css-javascript,html-css-javascript-project,html5,javascript,javascript-applications,javascript-project,javascript-projects-for-beginners,movies-app
2024-03-11T18:33:36Z
2024-03-11T18:36:12Z
null
1
0
1
0
2
3
null
null
HTML
Arunvijay28/Memory-puzzle-game
main
# Memory-puzzle-game To create a web based application for Memory Puzzle Game using Ruby on Rails ## Table of Contents [Description](#description) [Walkthrough](#Walkthrough) [Tools used](#Toolsused) [Algorithms used](#Algorithmsused) ## Description The Memory Puzzle Game, developed using Ruby on Rails, offers a multifaceted cognitive challenge through four distinct modes: Sound Memory, Memory Matrix, Memory Card, and Treasure Hunter. In Sound Memory, players enhance their auditory recall by reproducing sequences of sounds. Memory Matrix tests visual and spatial memory as players recreate briefly shown patterns on a grid. Memory Card is a classic card-matching game that improves visual memory and concentration. The most advanced mode, Treasure Hunter, employs a Convolutional Neural Network (CNN) for speech recognition, allowing players to use voice commands, and utilizes a backtracking algorithm to determine and display the optimal path to a hidden treasure, combining elements of memory, strategy, and technology for a comprehensive cognitive workout <a id="Walkthrough"></a> ## Walkthrough ### Home Page <img src="/images/home.png" width=50%> ### Sign Up <img src="/images/signup.png" width=50%> ### Login <img src="/images/login.png" width=50%> ## Types of Game 1. Sound Memory 2. Memory Matrix 3. Card Matching 4. Treasure Hunter ### Sound Memory <img src="/images/simon.png" width=50%> ### Memory Matrix <img src="/images/matrix.png" width=50%> ### Card Matching <img src="/images/card.png" width=50%> ### Treasure Hunter <img src="/images/treasure.png" width=50%> ### Backtracked Path <img src="/images/backtrack.png" width=50%> <a id="Toolsused"></a> ## Tool Used 1. HTML,CSS - Web Page Creation and styling 2. Javascript - Handling game Logic and implementing Backtracking algorithm 3. AJAX - To Render pages dynamically without reloading 4. Python - To implement Machine Learning CNN algorithm 5. Ruby on Rails - Web Framework <a id="Algorithmsused"></a> ## Algorithm Used ### Backtracking Algorithm To show the best path for the Hunter to reach the Treasure
Memory puzzle Game
css3,html5,javascript,python3,ruby,ruby-on-rails,sqlite3,expressjs,nodejs,ajax
2024-03-14T09:32:39Z
2024-05-23T14:35:30Z
null
4
0
83
0
0
3
null
null
JavaScript
ViktorSvertoka/goit-react-woolf-hw-03-phonebook
main
# Критерії приймання - Створений репозиторій `goit-react-woolf-hw-03-phonebook` - При здачі домашньої роботи є посилання: на вихідні файли та робочу сторінку проектів на `GitHub Pages`. - У стані компонентів зберігається мінімально необхідний набір даних, решта обчислюється - Під час запуску коду завдання в консолі відсутні помилки та попередження. - Для кожного компонента є окрема папка з файлом React-компонента та файлом стилів - Все, що компонент очікує у вигляді пропсів, передається йому під час виклику. - Імена компонентів зрозумілі та описові - JS-код чистий і зрозумілий, використовується `Prettier`. - Стилізація виконана `CSS-модулями` або `Styled Components` чи `Tailwind CSS` 🤭. ## Книга контактів Візьми своє рішення завдання з попередньої домашньої роботи і додай зберігання контактів телефонної книги в `localStorage`. Використовуй методи життєвого циклу. - Під час додавання та видалення контакту контакти зберігаються у локальне сховище. - Під час завантаження застосунку контакти, якщо такі є, зчитуються з локального сховища і записуються у стан. ### Фінальний результат ![Screencapture](./assets/screencapture.png)
Home task for React course📘
goit,javascript,react,tailwindcss,goit-react-woolf-hw-03-phonebook
2024-02-11T11:35:39Z
2024-02-11T12:47:32Z
null
1
0
2
0
0
3
null
null
JavaScript
ViktorSvertoka/goit-react-woolf-hw-04-images
main
# Критерії приймання - При здачі домашньої роботи є посилання: на вихідні файли та робочу сторінку проекту на `GitHub Pages`. - Під час запуску коду завдання в консолі відсутні помилки та попередження. - Для кожного компонента є окрема папка з файлом React-компонента та файлом стилів - Імена компонентів зрозумілі та описові. ## Пошук зображень - Створений репозиторій `goit-react-woolf-hw-04-images`. - Проведи рефакторинг коду завдання, використовуючи React-хуки. ### Фінальний результат ![screencapture](./assets/screencapture.png)
Home task for React course📘
emotion,goit,javascript,react,goit-react-woolf-hw-04-images
2024-02-12T20:02:49Z
2024-02-16T20:06:51Z
null
1
0
10
0
0
3
null
null
JavaScript
LinUxTo5re/EMS
ems
# Employee Management System ## Overview The Employee Management System is a web application built using jQuery,AJAX, HTML, CSS, C#, .NET, ASP.NET, and MVC architecture. It provides functionalities to add new employees and display employee details with search capabilities. ## Features - Add new employees with details such as name, employee id, contact number, email id, etc. - Display employee details on a separate page with search functionality. - Utilizes jQuery and AJAX for enhanced user experience. ## Prerequisites - Visual Studio 2022 - SQL Server Management Studio ## Getting Started 1. Clone the repository to your local machine. 2. Open the project in Visual Studio. 3. Open SQL Server Management Studio and execute the EMS.sql script. 4. Configure the database connection string in the web.config file. 5. Build and run the project in Visual Studio. ## Usage - To add a new employee: - Navigate to the "Home" page. - Fill in the required details in the form and submit. - Upon successful submission, the employee will be added to the database with message pop up. - To view employee details: - Navigate to the "Employee Details" page. - Use the search functionality to find specific employees based on criteria such as name, employee id, email id etc. - The employee details will be displayed on the page. ## Screenshots ### Nav Bar ![image](https://github.com/LinUxTo5re/EMS/assets/90641894/4f48ca50-0496-48fe-bff3-5fb9d0e46def) ### Add employees ![image](https://github.com/LinUxTo5re/EMS/assets/90641894/4332082b-909f-4383-b060-56f0ea65c0f8) ### Display employees details ![image](https://github.com/LinUxTo5re/EMS/assets/90641894/06ee0076-90c9-4ae9-8141-299fb7e65e7f)
Employee Management System: A web app utilizing jQuery, AJAX, C#, and ASP.NET MVC for adding and displaying employee details with search functionality. Designed for ease of use and efficient employee management.
ado,ajax,csharp,css,dotnet,employee-management-system,html,javascript,jquery,mvc-architecture
2024-02-02T10:32:17Z
2024-02-19T11:06:46Z
null
1
0
35
0
0
3
null
GPL-3.0
JavaScript
huyhoang-doit/UI_features
master
# :raising_hand: User interface library created with HTML/CSS/JS --- ## ⭐ :star: Description These are the products I made during the process of learning and practicing front end --- ## :wrench: Build with <img src="https://img.shields.io/badge/html5%20-%23E34F26.svg?&style=for-the-badge&logo=html5&logoColor=white"/> <img src="https://img.shields.io/badge/css3%20-%231572B6.svg?&style=for-the-badge&logo=css3&logoColor=white"/> <img src="https://img.shields.io/badge/javascript%20-%23323330.svg?&style=for-the-badge&logo=javascript&logoColor=%23F7DF1E"/> --- ## :globe_with_meridians: Link demo :point_right:[001_BlackPink_page](https://huyhoang-doit.github.io/blackpink_page/)<br> <img src="./ScreenShot/001-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/001-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[002_Electronics_web](https://huyhoang-doit.github.io/electronics_web/)<br> <img src="./ScreenShot/002-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/002-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[003_MusicPlayer](https://huyhoang-doit.github.io/Music_player/)<br> <img src="./ScreenShot/003-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/003-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[004_TodoList](https://huyhoang-doit.github.io/TodoList_using_JavaScript/)<br> <img src="./ScreenShot/004-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/004-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[005_Toast_message](https://huyhoang-doit.github.io/Toast_message/)<br> <img src="./ScreenShot/005-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/005-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[006_Validation_form](https://huyhoang-doit.github.io/Validation_form_js/)<br> <img src="./ScreenShot/006-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/006-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[007_Tab_UI](https://huyhoang-doit.github.io/Tabs_UI/)<br> <img src="./ScreenShot/007-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/007-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[008_Product_card](https://huyhoang-doit.github.io/Product_card/)<br> <img src="./ScreenShot/008-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/008-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[009_Profile_card](https://huyhoang-doit.github.io/Profile_card/)<br> <img src="./ScreenShot/009-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/009-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[010_Simple_search_box](https://huyhoang-doit.github.io/Simple_search_box/)<br> <img src="./ScreenShot/010-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/010-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[011_Simple_modal](https://huyhoang-doit.github.io/Modal_show/)<br> <img src="./ScreenShot/011-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/011-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[012_Image_gallery](https://huyhoang-doit.github.io/Image_gallery/)<br> <img src="./ScreenShot/012-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/012-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[013_Detect_pressed_key](https://huyhoang-doit.github.io/Detect_pressed_key/)<br> <img src="./ScreenShot/013-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/013-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[014_Search_tags](https://huyhoang-doit.github.io/Search_tags/)<br> <img src="./ScreenShot/014-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/014-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[015_Validate_form](https://huyhoang-doit.github.io/Validation_form_simple/)<br> <img src="./ScreenShot/015-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/015-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[016_Weather_app](https://huyhoang-doit.github.io/Weather_app/)<br> <img src="./ScreenShot/016-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/016-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br> :point_right:[017_Slide_show](https://huyhoang-doit.github.io/Slide_show_simple/)<br> <img src="./ScreenShot/017-1.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <img src="./ScreenShot/017-2.png" style="border-radius:2%" width="49%" height="49%" />&nbsp; <br> <br>
🎨 These are the products I made during the process of learning and practicing HTML/CSS/JS
css3,front-end,html5,javascript,library,user-interface
2024-03-13T17:03:55Z
2024-03-29T15:52:43Z
null
1
0
25
0
0
3
null
null
CSS
simliai/simli-js-demo
main
# 🚀 Getting started with Simli This is a basic Simli JavaScript demo showing how to create a session and join it using Daily SDK. This demo shows how to: - Create a call object - Call Simli API to create a session - Join session through Daily call - Attach video and audio tracks to the DOM - Leave a call and clean up - Recieve and update App State ## 🔥 Preview ![preview](https://github.com/simliai/simli-api-demo/blob/main/preview.gif?raw=true) ## 🔧 Usage 1. Get your Simli API KEY at [https://www.simli.com/sign-up-in](https://www.simli.com/sign-up-in) 2. Open index.html on your browser and insert the API KEY ## 🧾 Learn more - Learn more about **Simli API** to create and prompt sessions: [Click here](https://docs.simli.com/) - Learn more about **Daily JS** to customize your call interface: [Click here](https://docs.daily.co/reference/daily-js)
JavaScript demo covering all the key functionalities of simli API to start building custom AI sessions and tweaking your call interface using the Daily SDK.
ai,css,daily,html,javascript,webrtc,simli
2024-03-11T08:50:25Z
2024-04-08T09:16:30Z
null
2
0
19
0
0
3
null
null
JavaScript
jorshali/ai-for-developers
main
# The Busy Developers Guide to Generative AI ### JavaScript tutorials with LangChain.js, Node.js, and Express [Download the Book](busy_developers_guide_to_genai.pdf) Finally, a book that makes AI approachable for developers. This book is here to jumpstart your AI learning journey. You won’t need to dust off your Python spellbook, train neural networks, or get a PhD in statistics. All you need is some basic JavaScript knowledge and a willingness to learn. We’ll skip all the data science wizardry by using pre-trained generative AI models (specifically LLMs). APIs and SDKs have made these models accessible to developers in the languages they’re already building applications with. This book will guide you through combining your own data with the power of LLMs using a technique called RAG (Retrieval Augmented Generation). During this journey, you'll learn important concepts while gaining practical experience with some key JavaScript libraries: [Node.js](https://nodejs.org/docs/latest/api/), [Express](https://expressjs.com/en/4x/api.html), and [LangChain.js](https://js.langchain.com/docs/get_started/introduction). You can follow me on LinkedIn for more: [Jacob Orshalick | LinkedIn](https://linkedin.com/in/jorshalick) ## Quick Start The following steps will guide you through getting part 1 up and running on your machine. 1. Clone this project into a local directory: ``` ~ % git clone <url> ``` 2. Install Node - Download and install: https://nodejs.org - Verify the install in your terminal: ``` ~ % node -v ``` - If the installation succeeded, the version will print 3. Install node modules - Navigate to the project `part1` directory in your terminal and run: ``` ~/ai-for-developers/part1 % npm install ``` 4. Create an OpenAI account: - Register here: https://platform.openai.com - Obtain an API key: - Simply select ‘API keys’ in the upper left navigation - Select ‘+ Create new secret key’ - Copy the key somewhere safe for now 5. Set an environment variable: - In the same terminal, run the following command with your key value: ``` ~/ai-for-developers/part1 % export OPENAI_API_KEY=<YOUR_KEY_VALUE> ``` - _Optionally_: add this command to your bash profile: ~/.zshrc 6. Launch the server - Back in the terminal, run the following command: ``` ~/ai-for-developers/node % node server-part1.mjs ``` - Open your web browser and visit: http://localhost:3000 - You’ll see the response from the OpenAI model: test ## Project Structure The project contains folders with examples to support the "The Busy Developers Guide to GEN AI" e-book. Each folder contains the example for that part in the series. - [part1](part1): Build a REST Service that calls an LLM - [part2](part2): Stream your LLM Responses - [part3](part3): Create a Vector Search with custom data - [part4](part4): Supercharge your data with RAG For each part you'll find a `README.md` with instructions to get the example up and running.
The Busy Developers Guide to Generative AI: A free e-book to quickly learn AI development with JavaScript, Node.js, and LangChain.js
chatgpt,expressjs,genai,javascript,langchain,langchain-js,nodejs,openai
2024-02-27T16:46:34Z
2024-03-07T15:26:48Z
null
1
0
11
0
0
3
null
null
JavaScript
arnavnagpurkar/iShortener
main
# iShortener iShortener is a fast, reliable, and secure URL shortening service designed to make sharing links easier and more efficient. ## Use iShortener iShortener is deployed on Vercel you can use it by going on this URL: ### [iShortener.vercel.app](https://ishortener.vercel.app) ## Features * **Quick Shortening**: Instantly shorten URLs with just a few clicks. * **Shareable Links**: Easily share shortened links on social media, emails, or messages. * **Secure Shortening**: Ensures the security of your shortened links with advanced encryption techniques. * **No Registration Required**: Start shortening links immediately without the hassle of registration. ## About iShortener is an open-source project created by Arnav Nagpurkar. It is built using Next.js and Tailwind CSS, leveraging the power of modern web technologies to provide a seamless and efficient URL shortening experience. ## Development To run the iShortener project locally, follow these steps: 1. Clone the repository: ```bash git clone https://github.com/arnavnagpurkar/iShortener.git ``` 2. Navigate to the project directory: ```bash cd iShortener ``` 3. Install dependencies: ``` bash npm install # or yarn install ``` 4. Create a `.env.local` file in the `root` directory 5. Get your [Access Token](https://app.bitly.com/settings/api/) 6. Your `.env.local` file should look like this: ```bash ACCESS_TOKEN = "YOUR_ACCESS_TOKEN_HERE" ``` 7. Start the development server: ``` bash npm run dev # or yarn dev ``` 8. Open your browser and visit `http://localhost:3000` to access iShortener. ## Contributing Contributions are welcome! If you'd like to contribute to iShortener, please follow these guidelines: 1. Fork the repository. 2. Create a new branch for your feature or bug fix. 3. Make your changes and ensure the code is properly formatted. 4. Write tests for your changes if applicable. 5. Commit your changes and push them to your fork. 6. Submit a pull request detailing the changes you've made. ## Issues If you encounter any issues with iShortener, please [report them here](https://github.com/arnavnagpurkar/iShortener/issues). ## License iShortener is open-source software licensed under the [MIT License](https://opensource.org/licenses/MIT). Check the [LICENSE](LICENSE) file for more details. ## Contact For any inquiries or questions regarding iShortener, feel free to contact Arnav Nagpurkar at [arnavn.dev@gmail.com](mailto:arnavn.dev@gmail.com).
URL Shortener made using Next.js and Tailwind CSS
javascript,nextjs,tailwindcss,vercel-deployment,bitly-api,link-shortener
2024-02-29T14:52:44Z
2024-03-26T08:22:46Z
null
1
0
23
0
0
3
null
MIT
JavaScript
madina0801/joblique
main
# 💼 [Joblique](https://job-trackr-00f2.onrender.com) An intuitive and efficient job application tracker designed to streamline your job search process. ## 📝 Documentation The documentation is segmented into these sections: - [Description](#-description) - [Features](#-features) - [Installation](#%EF%B8%8F-installation) - [Usage](#-usage) - [Contributing](#-contributing) - [License](#-license) - [Contact](#%EF%B8%8F-contact) ## 👀 Description **Joblique** simplifies the task of managing your job applications by providing a convenient platform where you can input and track the jobs you've applied to. Say goodbye to scattered notes and disorganized spreadsheets – with **Joblique**, focus on securing your ideal job! ## ✨ Features - **Job Application Management:** Input and manage the details of the jobs you've applied to, like including company name, job title or application status. ## 🛠️ Installation To install **Joblique**, follow these steps: 1. Clone the repository: ```bash git clone https://github.com/madina0801/joblique.git ``` 2. Navigate to the project directory: ```bash cd joblique/client ``` 3. Install dependencies: ```bash npm install ``` ## 🚀 Usage To use **Joblique** locally, run the following command: ```bash npm run dev ```` Now you should be able to access it at `localhost:5173`. ## 🤝 Contributing We welcome contributions to **Joblique**! While the project is still in its early stages, it will continue to grow and evolve with time. For guidelines on contributing, please refer to [CONTRIBUTING.md](CONTRIBUTING.md). 🤗 ## 📄 License This project is licensed under the terms of the [MIT License](LICENSE). ## ☎️ Contact If you have any questions or suggestions, feel free to reach out: <p align="left"> <a href="https://github.com/madina0801"> <img alt="GitHub" title="GitHub" src="https://img.shields.io/badge/madina0801-%23c9510c?style=for-the-badge&logo=github"/></a> <a href="https://www.linkedin.com/in/madina-tussupova"> <img alt="LinkedIn" title="LinkedIn" src="https://img.shields.io/badge/Madina%20Tussupova-%230077B5?style=for-the-badge&logo=linkedin&link=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmadina-tussupova"/></a> </p>
Keep track of your job applications 💼
css,html,javascript,reactjs
2024-01-30T10:03:08Z
2024-05-23T08:49:31Z
null
11
24
210
2
14
3
null
MIT
JavaScript
devgaab/landing-page-hogwarts-legacy
main
<h1 align="center">Landing Page Hogwarts Legacy</h1> <p align="center"> <a href="#-tecnologias">Tecnologias</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; <a href="#-projeto">Projeto</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; <a href="#-funcionalidades">Funcionalidades</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p> <br> <p align="center"> <img alt="projeto Portfólio" src=".github/preview-cover.png" width="100%"> </p> ## 🚀 Tecnologias Esse projeto foi desenvolvido com as seguintes tecnologias: - HTML5 - CSS3 - JavaScript - Git e Github ### 💻 Projeto. Projeto construido durante o evento da Semana do Zero ao Programador Contratado do canal do youtube Dev em Dobro. - [Acesse o projeto finalizado, online](https://devgaab.github.io/landing-page-hogwarts-legacy/) ### ⚙ Funcionalidades - Projeto responsivo - Barra de navegação simples - Seleção de plataforma para compra - Scrollbar personalisado ---
Aplicação web responsivo de uma landing page feita com HTML5, CSS e Javascript.
css3,git,github,html5,javascript
2024-01-28T02:43:32Z
2024-02-04T00:55:36Z
null
1
0
15
0
0
3
null
null
CSS
iamaliybi/treemap-algorithm
main
# Golden Treemap This project implements a treemap visualization using the squarified layout algorithm combined with the golden ratio for optimal rectangle aspect ratios. Inspired by the "TradingView stock heatmap" data, this tool offers an intuitive and visually appealing way to explore hierarchical data structures. ## Features - Squarified layout algorithm for efficient space utilization - Integration with "TradingView stock heatmap" data for real-world application - Responsive design for seamless display across various devices ## Technologies Used - Typescript - Vite ## Getting Started To get a local copy up and running follow these simple steps. ### Prerequisites Ensure you have Node.js and npm installed on your machine. ### Installation 1. Clone the repository ```sh git clone https://github.com/yourusername/golden-treemap.git ``` 2. Navigate into the project directory ```sh cd treemap-algorithm ``` 2. Install dependencies ```sh npm install ``` ## Usage Start the development server ```sh npm run dev ``` Open your browser and navigate to <http://localhost:5173> to view the application. ## Contributing Contributions are welcome! Whether you're interested in adding new features, fixing bugs, or improving documentation, feel free to submit pull requests and help make this project even better. ## Contact For any inquiries or feedback, please reach out via [Email](mailto:iamaliybi.dev@gmail.com) or connect with me on [Linkedin](https://www.linkedin.com/in/iamaliybi).
This project implements a treemap visualization using the squarified layout algorithm combined with the golden ratio for optimal rectangle aspect ratios. Inspired by the "TradingView stock heatmap" data, this tool offers an intuitive and visually appealing way to explore hierarchical data structures.
javascript,tradingview,treemap,typescript,stock-heatmap
2024-03-07T22:12:16Z
2024-03-07T22:23:31Z
null
1
0
1
0
0
3
null
null
TypeScript
karlinarayberinger/KARLINA_OBJECT_extension_pack_8
main
null
This repository contains web page source code and media files which supplement the websites named Karlina Object dot WordPress dot Com and Karbytes For Life Blog dot WordPress dot Com.
2024,blog,cplusplus,css,html,images,javascript,karbytes,website,wordpress
2024-02-09T02:16:29Z
2024-02-24T05:14:58Z
null
1
0
276
0
1
3
null
Unlicense
HTML
ahmad-masud/Database-Schema-Constructor
main
# Database Schema Constructor ![DBSC](/resources/dbsc.gif) ## Description The Database Schema Constructor is a web application for visually creating and manipulating database schemas. It allows users to add tables, define attributes, and set constraints like `NOT NULL`, `UNIQUE`, `PRIMARY KEY`, `AUTO_INCREMENT` and `FOREIGN KEY`. Features include SQL query generation and download, draggable tables for layout flexibility, and responsive design. Schemas can be persisted in local storage for future sessions. ## Features - **Visual Database Design**: Add, edit, and remove tables and attributes. - **Attribute Constraints**: Direct UI definition of attribute constraints. - **SQL Generation**: Generate SQL queries for the schema. - **Download SQL**: Download the schema as an SQL file. - **Draggable Tables**: Reorganize tables on the screen on larger screens. - **Responsive Design**: Ensures usability across devices. - **Local Storage**: Schema persistence across sessions. - **Cloud Storage**: Save Schemas to the cloud. ## Getting Started ### Prerequisites Before you begin, ensure you have the latest version of Node.js and npm installed on your system. ### Installation 1. Clone the repository: ```bash git clone https://github.com/ahmad-masud/Database-Schema-Constructor ``` 2. Navigate to the project directory: ```bash cd ahmad-masud.github.io ``` 3. Install dependencies: ```bash npm install ``` 4. Start the development server: ```bash npm start ``` This command runs the app in development mode. Open [http://localhost:3000](http://localhost:3000) to view it in your browser. ## Usage - **Creating a Table**: Use the "Add Table" button. - **Editing**: Use edit icons for tables or attributes. - **Downloading SQL**: Use the "Download SQL" button. - **Clearing Schema**: Use the "Delete Database" button. - **Login in with Google** Use the "Login" button. - **Saving to the cloud with Google**: Use the "Save Database" button. - **Loading from the cloud with Google**: Use the "Modify Databases" button. ## Contributing Contributions are welcome. Please fork the project, create your feature branch, commit your changes, push to the branch, and open a pull request. ## License Distributed under the MIT License. See [MIT License](LICENSE) for more information.
🗄A tool created to help design and visualize database schemas in sql
database-generator,database-schema,javascript,react,database,database-management,sql,schema,firebase,nodejs
2024-02-10T22:06:52Z
2024-05-07T02:36:11Z
null
1
0
60
0
0
3
null
MIT
JavaScript