Skip to content

Commit

Permalink
rm folders and update
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Nov 7, 2023
1 parent f7b32a8 commit 49b9711
Show file tree
Hide file tree
Showing 39 changed files with 36 additions and 30 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
defaults:
run:
shell: bash
working-directory: automation-scripts/News
working-directory: api/News
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -33,11 +33,6 @@ jobs:
NEWS_API_KEY: ${{ secrets.NEWS_API_KEY }}
run: yarn start

- name: Move news.json
run: |-
git add news.json
git mv -f news.json ../../api/news.json
- name: Commit and push if changed
run: |-
git config --global user.email "[email protected]"
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ jobs:
- name: Run
run: yarn start

- name: Move packages.json
run: |-
git add packages.json
git mv -f packages.json ../../api/packages.json
- name: Commit and push if changed
run: |-
git config --global user.email "[email protected]"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 15 additions & 1 deletion api/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# todo
# newsfeed

An Express.js application that serves as an RSS feed generator. It provides a convenient way to fetch and serve RSS feeds from specified sources.

# News

This script fetches news articles about JavaScript from a news API and saves them to `news.json`.

[workflow](https://github.com/lifeparticle/binarytree/blob/main/.github/workflows/news.yml)

# npm-packages

This script checks for major version updates of specified npm packages and saves the data to `packages.json`.

[workflow](https://github.com/lifeparticle/binarytree/blob/main/.github/workflows/packages.yml)
1 change: 0 additions & 1 deletion api/.gitignore → api/newsfeed/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
.env

.yarn
6 changes: 6 additions & 0 deletions api/newsfeed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Run the script

```shell
yarn install
yarn dev
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion packages/README.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/create-docs/README.md

This file was deleted.

6 changes: 5 additions & 1 deletion ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
### [7.1.3] - 2023-11-07
### [8.0.0] - 2023-11-07

- Refactor DataDetection class
- Organise component files
- Add tests for DataDetection class
- Notification bell icon bug fix
- Search modal onClick bug fix
- Remove automation-scripts folder
- Remove packages folder
- Update README.md in api folder
- Update news.yml and packages.yml

### [7.1.2] - 2023-11-06

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ const NotificationList: React.FC<NotificationListProps> = ({
"notification-container"
)}
onOpenChange={handleRedFlagNotification}
open
>
<Button
aria-label="notification-icon"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Card, Col, Skeleton, Space, Tag, Typography } from "antd";
import React from "react";
import { Package as PackagType } from "pages/Information/Npmpackages/utils/types";
import { Package as PackagType } from "pages/Information/Npmpackages/types";
const { Title } = Typography;
import style from "pages/Information/Npmpackages/Npmpackages.module.scss";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React from "react";
import { Row } from "antd";
import style from "pages/Information/Npmpackages/Npmpackages.module.scss";
import Package from "./Package";
import { Package as PackageProps } from "pages/Information/Npmpackages/utils/types";
import PackageSkeleton from "./PackageSkeleton";
import { Package as PackagType } from "pages/Information/Npmpackages/types";

interface PackageListProps {
packages: PackageProps[];
packages: PackagType[];
isLoading: boolean;
}

Expand Down
5 changes: 4 additions & 1 deletion ui/src/pages/Information/Npmpackages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { Text } from "components/General";
import { API_ERROR, API_NO_DATA } from "data/constants";
import useFetchList from "hooks/useFetchList";
import PackageList from "./components/PackageList";
import { PACKAGE_QUERY_KEY, PACKAGE_QUERY_URL } from "./utils/constants";

const PACKAGE_QUERY_KEY = "npm-packages";
const PACKAGE_QUERY_URL =
"https://raw.githubusercontent.com/lifeparticle/binarytree/main/api/npm-packages/packages.json";

const Npmpackages = () => {
const { data, isLoading, isError } = useFetchList(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
interface Package {
export interface Package {
key: string;
url: string;
version: string;
new: boolean;
}

export type { Package };
5 changes: 0 additions & 5 deletions ui/src/pages/Information/Npmpackages/utils/constants.ts

This file was deleted.

2 changes: 1 addition & 1 deletion ui/src/pages/Newsfeed/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const SITE_OPTIONS = {
},
news: {
label: "News",
value: "https://raw.githubusercontent.com/lifeparticle/binarytree/main/api/news.json",
value: "https://raw.githubusercontent.com/lifeparticle/binarytree/main/api/News/news.json",
isFeedItem: false,
},
};
Expand Down

0 comments on commit 49b9711

Please sign in to comment.