[PR #7] [MERGED] feat: Port code to TypeScript #4

Closed
opened 2025-12-29 18:27:42 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/linsa-io/linsa/pull/7
Author: @sleepyfran
Created: 8/13/2019
Status: Merged
Merged: 8/14/2019
Merged by: @jletey

Base: feature/frontendHead: feature/frontend


📝 Commits (6)

  • 8371c29 Added .idea to .gitignore
  • 5c9436a [WIP] Port to TypeScript
  • 77efeee Upgraded to new theme-ui types and finished TypeScript port
  • fd30d4f Reformatted code
  • a713f2c Added new lines and switched to FunctionComponents
  • d759635 Fixed search bar not updating query

📊 Changes

18 files changed (+7564 additions, -241 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 components/Button.tsx (+9 -2)
components/Footer.js (+0 -52)
components/Footer.tsx (+57 -0)
📝 components/Header.tsx (+17 -11)
components/SearchInput.js (+0 -69)
components/SearchInput.tsx (+78 -0)
📝 package.json (+6 -4)
pages/_app.js (+0 -38)
pages/_app.tsx (+38 -0)
pages/_document.js (+0 -25)
pages/_document.tsx (+24 -0)
📝 pages/guide/new/index.tsx (+2 -1)
📝 pages/index.tsx (+12 -3)
📝 src/theme.tsx (+2 -2)
📝 tsconfig.json (+1 -1)
yarn-error.log (+7205 -0)
📝 yarn.lock (+112 -33)

📄 Description

Summary

This PR ports the current code to TypeScript.

Changes

  • Added .idea folder to .gitignore to avoid polluting the repo with IDE folders.
  • Added TypeScript and type dependencies to the project.
  • Ported all JavaScript files to a type-safe version in TypeScript.

Notes for reviewers

N/A.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/linsa-io/linsa/pull/7 **Author:** [@sleepyfran](https://github.com/sleepyfran) **Created:** 8/13/2019 **Status:** ✅ Merged **Merged:** 8/14/2019 **Merged by:** [@jletey](https://github.com/jletey) **Base:** `feature/frontend` ← **Head:** `feature/frontend` --- ### 📝 Commits (6) - [`8371c29`](https://github.com/linsa-io/linsa/commit/8371c299609095c8abcfd4cf7c72736710c79f8f) Added .idea to .gitignore - [`5c9436a`](https://github.com/linsa-io/linsa/commit/5c9436ae68f98e83941b4bce00a7339f39f1883f) [WIP] Port to TypeScript - [`77efeee`](https://github.com/linsa-io/linsa/commit/77efeee4cf95890bb3b12a5d775f37d2d56d8ac4) Upgraded to new theme-ui types and finished TypeScript port - [`fd30d4f`](https://github.com/linsa-io/linsa/commit/fd30d4f58d7ff0634c4d078b578d9e386d5447fd) Reformatted code - [`a713f2c`](https://github.com/linsa-io/linsa/commit/a713f2c5fd2595d65a7b1318f0c21ea873d1ef37) Added new lines and switched to FunctionComponents - [`d759635`](https://github.com/linsa-io/linsa/commit/d7596354c26fc9663e99dc551156fb33a7e1be96) Fixed search bar not updating query ### 📊 Changes **18 files changed** (+7564 additions, -241 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `components/Button.tsx` (+9 -2) ➖ `components/Footer.js` (+0 -52) ➕ `components/Footer.tsx` (+57 -0) 📝 `components/Header.tsx` (+17 -11) ➖ `components/SearchInput.js` (+0 -69) ➕ `components/SearchInput.tsx` (+78 -0) 📝 `package.json` (+6 -4) ➖ `pages/_app.js` (+0 -38) ➕ `pages/_app.tsx` (+38 -0) ➖ `pages/_document.js` (+0 -25) ➕ `pages/_document.tsx` (+24 -0) 📝 `pages/guide/new/index.tsx` (+2 -1) 📝 `pages/index.tsx` (+12 -3) 📝 `src/theme.tsx` (+2 -2) 📝 `tsconfig.json` (+1 -1) ➕ `yarn-error.log` (+7205 -0) 📝 `yarn.lock` (+112 -33) </details> ### 📄 Description ## Summary This PR ports the current code to TypeScript. ## Changes - Added .idea folder to .gitignore to avoid polluting the repo with IDE folders. - Added TypeScript and type dependencies to the project. - Ported all JavaScript files to a type-safe version in TypeScript. ## Notes for reviewers N/A. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 18:27:42 +01:00
adam closed this issue 2025-12-29 18:27:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/linsa#4