GNU General Public License v3.0

项目介绍

allister-grange/startertab 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 GNU General Public License v3.0 许可证,目前获得 413 个 Star、38 次 Fork。

仓库全名
allister-grange/startertab
开源许可证
GNU General Public License v3.0
Star 数
413
Fork 数
38
未关闭 Issue
4

README 摘要

Starter Tab https://github.com/allister-grange/startertab/assets/18430086/e8173522-c566-4cec-a894-061925c8c4ff I was getting sick of the same old new tab page. I wanted to have a dashboard for everything I reach for in my typical workday, so I built it. StarterTab is here to revolutionize the way you start your day on the internet. With a completely customizable webapp to replace your new tab homepage, you can…

完整内容见 GitHub 原始 README 或本页 。

常见问题

startertab 用什么语言开发?

主要使用 TypeScript 编写,采用 GNU General Public License v3.0 许可证,目前有 413 个 Star。

startertab 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 startertab 的源码?

可以直接克隆仓库:git clone https://github.com/allister-grange/startertab.git,默认分支为 main;安装与运行步骤见仓库 README。

startertab 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 4 个未关闭 Issue;Star 数为 413,可作为社区活跃度的参考。

关于

A custom new tab page, keeping all the best info handy (a work in progress, feedback is invaluable)

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
492
价值分
259
活跃状态
活跃

README

Starter Tab

https://github.com/allister-grange/startertab/assets/18430086/e8173522-c566-4cec-a894-061925c8c4ff

I was getting sick of the same old new tab page. I wanted to have a dashboard for everything I reach for in my typical workday, so I built it.

StarterTab is here to revolutionize the way you start your day on the internet. With a completely customizable webapp to replace your new tab homepage, you can personalize your online experience like never before.

You can install the chrome extension here, or the firefox extension here and make StarterTab the site that opens up on every one of your new tabs.

Tech

Local storage is being used for storing all of your customizations, meaning you own your data! All of the settings, tokens and themes sit on your own browser. Some may call it laziness that I don’t want to maintain a database, you could also see it as me helping prevent your data being in yet another cloud service.

Written in NextJS with ChakraUI. The frontend and functions are hosted on Vercel, the database on Neon.

Current API Integrations

Future API Integrations Ideas

  • Public transport provider

Getting Started

1. Clone the repository and install dependencies

git clone https://github.com/allister-grange/startertab.git
cd startertab
yarn install

2. Configure your local environment

Copy the .env.local.example file in this directory to .env.local (which will be ignored by Git):

cp .env.local.example .env.local

Add details for all providers you want to use:

STRAVA_CLIENT_ID=<YOUR_SECRET_HERE>
STRAVA_SECRET=<YOUR_SECRET_HERE>
WEATHERAPI_TOKEN=<YOUR_SECRET_HERE>
SPOTIFY_CLIENT_ID=<YOUR_SECRET_HERE>
SPOTIFY_CLIENT_SECRET=<YOUR_SECRET_HERE>
FINNHUB_SECRET=<YOUR_SECRET_HERE>
TWITTER_CLIENT_ID=<YOUR_SECRET_HERE>
TWITTER_CLIENT_SECRET=<YOUR_SECRET_HERE>
TWITTER_CODE_CHALLENGE_KEY=<YOUR_SECRET_HERE>
TOKEN_ENCRYPT_KEY=<YOUR_SECRET_HERE>
OUTLOOK_CLIENT_ID=<YOUR_SECRET_HERE>
OUTLOOK_CLIENT_SECRET=<YOUR_SECRET_HERE>
GOOGLE_CLIENT_ID=<YOUR_SECRET_HERE>
GOOGLE_CLIENT_SECRET=<YOUR_SECRET_HERE>
DATABASE_URL=<YOUR_SECRET_HERE>
DATABASE_URL_UNPOOLED=<YOUR_SECRET_HERE>
ANALYTICS_ENABLED=<true or false>

3. Start the application

To run your startertab locally, use:

yarn dev

To run it in production mode, use:

yarn build && yarn start

Creating a New Tile

  1. Create your new Tile component in the src/components/tiles folder. Make sure to accept a ‘tileId’ prop, this enables you to change the color of the text based off the settings changed in the sidebar.
type PageProps = {
  tileId: number;
};

export const YourNewTile: React.FC<PageProps> = ({ tileId }) => {
    const color = `var(--text-color-${tileId})`;

  return ();
}
  1. Add your tile type to the TileType in src/types/settings.ts.
  2. Add your new tile into the corresponding sizes you want available for your tile in the switch statement for tileSize in src/components/ui/OptionsForTileTypeSelect.tsx
  3. Add your tile type to the switch statement for the tileType in src/components/TileContainer.tsx

if you need persistent storage

  1. Add your new value into the TileSettings type within src/types/settings.ts
  2. Create a new selector in recoil for your new setting value in src/recoil/UserSettingsSelectors.tsx
  3. Use that selector within your tile

selector example:

export const imageFilePathSelector = createTilePropertySelector<string>(
  "imageFilePath",
  (theme, newValue) => {
    theme.imageFilePath = newValue;
  }
);

using that selector in a tile:

  const [fileValue, setFileValue] = useRecoilState(
    imageFilePathSelector (tileId)
  ) as [string | undefined, SetterOrUpdater<string | undefined>];

creating a sidebar menu item for options

  1. Add your new option to the OptionType in src/types/settings.ts
  2. Add your option into the sizes that pertain to it in src/helpers/sideBarOptions.ts
  3. Edit the src/components/sidebar/SettingOptionContainer.tsx to include the new option type

评论

暂无评论