Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

捉虫 + 题单更新 + 部分优化 #28

Merged
merged 7 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,34 @@ defaults:

jobs:
build:
# Specify runner + build & upload the static files as an artifact
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: CI=false npm run build --if-present
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./build
path: build/

deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import { lazy } from "react";

const List = lazy(() => import("@components/containers/List/SlideWindow"));
const List = lazy(() => import("@components/containers/List/SlidingWindow"));

export default function Page() {
return <List />;
Expand Down
2 changes: 1 addition & 1 deletion components/containers/List/BinarySearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
TableOfContent,
TOC,
} from "@components/ProblemCatetory/TableOfContent";
import Data from "@components/containers/List/data/binarysearch";
import Data from "@components/containers/List/data/binary_search";
import { useEffect, useState } from "react";
import Form from "react-bootstrap/esm/Form";

Expand Down
2 changes: 1 addition & 1 deletion components/containers/List/BitManipulation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
TableOfContent,
TOC,
} from "@components/ProblemCatetory/TableOfContent";
import Data from "@components/containers/List/data/bitmanipulation";
import Data from "@components/containers/List/data/bitwise_operations";
import { useEffect, useState } from "react";
import Form from "react-bootstrap/esm/Form";

Expand Down
2 changes: 1 addition & 1 deletion components/containers/List/DataStructure/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
TableOfContent,
TOC,
} from "@components/ProblemCatetory/TableOfContent";
import Data from "@components/containers/List/data/datastructure";
import Data from "@components/containers/List/data/data_structure";
import { useEffect, useState } from "react";
import Form from "react-bootstrap/esm/Form";

Expand Down
2 changes: 1 addition & 1 deletion components/containers/List/DynamicPrograming/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
TableOfContent,
TOC,
} from "@components/ProblemCatetory/TableOfContent";
import Data from "@components/containers/List/data/dynamicprogramming";
import Data from "@components/containers/List/data/dynamic_programming";
import { useEffect, useState } from "react";
import Form from "react-bootstrap/esm/Form";

Expand Down
2 changes: 1 addition & 1 deletion components/containers/List/MonotonicStack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
TableOfContent,
TOC,
} from "@components/ProblemCatetory/TableOfContent";
import Data from "@components/containers/List/data/monotonicstack";
import Data from "@components/containers/List/data/monotonic_stack";
import { useEffect, useState } from "react";
import Form from "react-bootstrap/esm/Form";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
TableOfContent,
TOC,
} from "@components/ProblemCatetory/TableOfContent";
import Data from "@components/containers/List/data/slidewindow";
import Data from "@components/containers/List/data/sliding_window";
import { useEffect, useState } from "react";
import Form from "react-bootstrap/esm/Form";

Expand Down
Loading
Loading