Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: OpenCSGs/csghub
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.2
Choose a base ref
...
head repository: OpenCSGs/csghub
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Sep 26, 2024

  1. Fix redirect links when session errors (#681)

    * fix redirect links when session errors
    
    * fix set roles bug
    zhendi authored Sep 26, 2024
    Copy the full SHA
    8e2fe44 View commit details
  2. Fix multisync button (#688)

    * Bug fix: check user roles in repo clone
    
    * Fix typo
    hiveer authored Sep 26, 2024
    Copy the full SHA
    eb48e53 View commit details
  3. Copy the full SHA
    f4018ed View commit details
  4. Fix typo (#691)

    hiveer authored Sep 26, 2024
    Copy the full SHA
    07609ea View commit details

Commits on Sep 27, 2024

  1. Copy the full SHA
    1754ba1 View commit details
  2. Copy the full SHA
    9ef0a62 View commit details
  3. Update setting in profile (#686)

    Co-authored-by: 朱鑫睿 <xinrui.zhu@opencsg.com>
    zzxr6 and 朱鑫睿 authored Sep 27, 2024
    Copy the full SHA
    6d6f42e View commit details
  4. Add region to NewApplicationSpace.vue (#675)

    Co-authored-by: 朱鑫睿 <xinrui.zhu@opencsg.com>
    zzxr6 and 朱鑫睿 authored Sep 27, 2024
    Copy the full SHA
    3d33f93 View commit details
  5. New fine tuning instance model ID input box Error message adjustment (#…

    …678)
    
    * Validate model id
    
    * Update zh to en
    
    ---------
    
    Co-authored-by: 朱鑫睿 <xinrui.zhu@opencsg.com>
    zzxr6 and 朱鑫睿 authored Sep 27, 2024
    Copy the full SHA
    de71e45 View commit details

Commits on Sep 30, 2024

  1. add nim runtime framework (#693)

    * add nim runtime framework
    
    * update path
    ganisback authored Sep 30, 2024
    Copy the full SHA
    9f4b201 View commit details

Commits on Oct 3, 2024

  1. Fix logout bug (#696)

    hiveer authored Oct 3, 2024
    Copy the full SHA
    b2ef5bf View commit details

Commits on Oct 8, 2024

  1. Update README.md (#698)

    change type error from "CSGHhub" to "CSGHub"
    ericyd80 authored Oct 8, 2024
    Copy the full SHA
    5082e87 View commit details

Commits on Oct 9, 2024

  1. Copy the full SHA
    9119016 View commit details
  2. update setup doc (#697)

    zhendi authored Oct 9, 2024
    Copy the full SHA
    3543dbc View commit details
  3. Csghub replace color design token (#702)

    * add color extent to tailwind config, and replace gray/brancd/error color with design tokens
    
    * update success & error & warning color
    
    * replace rest color into color tokens
    
    * remove empty line
    youngbeom-shin authored Oct 9, 2024
    Copy the full SHA
    e5529cd View commit details
  4. Adapt to multi-platform image building (#703)

    Co-authored-by: mason <xiang.ma@opencsg.com>
    MasonXon and mason authored Oct 9, 2024
    Copy the full SHA
    8d44282 View commit details

Commits on Oct 10, 2024

  1. adjust startup

    ganisback committed Oct 10, 2024
    Copy the full SHA
    d2f60ad View commit details
  2. Merge pull request #705 from OpenCSGs/fix-startup

    adjust startup dependency
    MasonXon authored Oct 10, 2024
    Copy the full SHA
    2589077 View commit details

Commits on Oct 11, 2024

  1. Update docker-compose.yml

    ganisback authored Oct 11, 2024
    Copy the full SHA
    d568e3a View commit details
  2. Merge pull request #706 from OpenCSGs/ganisback-patch-1

    Update docker-compose.yml
    MasonXon authored Oct 11, 2024
    Copy the full SHA
    ebbbf3b View commit details
  3. Copy the full SHA
    5e5ed32 View commit details

Commits on Oct 12, 2024

  1. update resource (#710)

    * update resource
    
    * support donwload model with internal domain
    
    * update
    ganisback authored Oct 12, 2024
    Copy the full SHA
    0b5a91b View commit details

Commits on Oct 14, 2024

  1. Update NewApplicationSpace.vue (#715)

    Co-authored-by: 朱鑫睿 <xinrui.zhu@opencsg.com>
    zzxr6 and 朱鑫睿 authored Oct 14, 2024
    Copy the full SHA
    c22597d View commit details
  2. Optimize Profile.vue (#713)

    Co-authored-by: 朱鑫睿 <xinrui.zhu@opencsg.com>
    zzxr6 and 朱鑫睿 authored Oct 14, 2024
    Copy the full SHA
    45b6750 View commit details
  3. add shadow variable into variable.css (#717)

    * add shadow variable into variable.css
    
    * update shadow css
    youngbeom-shin authored Oct 14, 2024
    Copy the full SHA
    f078827 View commit details
  4. FIx bug of endpoint page (#704)

    * Sync endpoint page
    
    * Update EndpointPage.vue
    
    * Reset code
    
    * Update endpoint settings to fetch resources by cluster id
    
    ---------
    
    Co-authored-by: 朱鑫睿 <xinrui.zhu@opencsg.com>
    Co-authored-by: Hiveer <ljp.hiveer@gmail.com>
    3 people authored Oct 14, 2024
    Copy the full SHA
    2a07dba View commit details
  5. remove csghub deploy script and modify the doc link to csghub-install…

    …er repo (#716)
    
    * remove csghub deploy script and modify the doc link to csghub-installer repo
    
    * fix typo
    
    * fix link address
    wayneliu0019 authored Oct 14, 2024
    Copy the full SHA
    4b1bae0 View commit details

Commits on Oct 15, 2024

  1. remove namespacePath in relationscard (#718)

    * remove namespacePath in relationscard
    
    * update locales
    
    * add datasets.length in datasetrelationcard & coderelationcard
    
    * update font weight
    youngbeom-shin authored Oct 15, 2024
    Copy the full SHA
    5d44b51 View commit details

Commits on Oct 17, 2024

  1. Update user verification (#722)

    Co-authored-by: HiveerLi <pingl@opencsg.com>
    hiveer and HiveerLi authored Oct 17, 2024
    Copy the full SHA
    7b809e1 View commit details

Commits on Oct 21, 2024

  1. Remove Chinese comments & fix typo (#725)

    * Fix typo
    
    * Remove Chinese comments
    hiveer authored Oct 21, 2024
    Copy the full SHA
    53c25ac View commit details
  2. Copy the full SHA
    f78de99 View commit details

Commits on Oct 22, 2024

  1. Upgrade JS packages and fix security issues (#728)

    * Do not put div inside p
    
    * Upgrade JS packages
    hiveer authored Oct 22, 2024
    Copy the full SHA
    f0cc626 View commit details

Commits on Oct 23, 2024

  1. fix org visit bug (#731)

    zhendi authored Oct 23, 2024
    Copy the full SHA
    926fc87 View commit details
  2. Add logout action and optimize logs (#730)

    * Add logout action on backend and handle redirect path
    
    * Optimize the portal server logs format
    
    * Update body logs handle logic
    hiveer authored Oct 23, 2024
    Copy the full SHA
    6978da8 View commit details
  3. update readme

    tianjiaopu authored and Rader committed Oct 23, 2024
    Copy the full SHA
    c514a9d View commit details
  4. enhance readme and add csghub saas guide

    tianjiaopu authored and Rader committed Oct 23, 2024
    Copy the full SHA
    62367e5 View commit details
  5. update readme file, csghub saas guide and release note

    tianjiaopu authored and Rader committed Oct 23, 2024
    Copy the full SHA
    b5ae26d View commit details
  6. fix minor issues in readme

    tianjiaopu authored and Rader committed Oct 23, 2024
    Copy the full SHA
    4f97265 View commit details

Commits on Oct 24, 2024

  1. add border radius and replace all radius with new token (#734)

    * add border radius and replace all radius with new token
    
    * add border radius in tailwind config and replace all rounded code
    
    * Add border-radius to all input, select, and textarea elements.
    youngbeom-shin authored Oct 24, 2024
    Copy the full SHA
    b07b4c9 View commit details

Commits on Oct 27, 2024

  1. Support using default branch from API details instead of "main" for r…

    …epo file series (#733)
    
    * default branch use api info
    
    * update resolve readme content
    zhendi authored Oct 27, 2024
    Copy the full SHA
    58bee27 View commit details

Commits on Oct 28, 2024

  1. fix repo settings (#740)

    zhendi authored Oct 28, 2024
    Copy the full SHA
    343a2a4 View commit details
  2. Optimize login and build process (#739)

    * handle await response
    
    * Bug fix for jwt token refresh
    
    * Enable logs in development
    
    * Optimize vite build
    
    * Remove ckeditor chunk
    hiveer authored Oct 28, 2024
    Copy the full SHA
    3004e1e View commit details

Commits on Oct 29, 2024

  1. Fix org member edit (#743)

    * fix org member edit bug
    
    * remove console logs
    zhendi authored Oct 29, 2024
    Copy the full SHA
    cf804ed View commit details
  2. Bug fix tags filter (#744)

    hiveer authored Oct 29, 2024
    Copy the full SHA
    f28661b View commit details

Commits on Oct 30, 2024

  1. Fixed github actions always warning for deprecated Node.js (#719)

    Co-authored-by: mason <xiang.ma@opencsg.com>
    MasonXon and mason authored Oct 30, 2024
    Copy the full SHA
    80240bf View commit details
  2. Copy the full SHA
    526e847 View commit details
  3. Copy the full SHA
    5db3fae View commit details

Commits on Nov 4, 2024

  1. fix(ui): correct CSS class names and color variables (#751)

    Removes trailing brackets from CSS class names (bg-brand-25], etc)
    youngbeom-shin authored Nov 4, 2024
    Copy the full SHA
    2448b65 View commit details

Commits on Nov 5, 2024

  1. Copy the full SHA
    99bae87 View commit details
  2. Copy the full SHA
    3cc13f2 View commit details
Showing 478 changed files with 20,518 additions and 7,683 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/docker-image-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Docker Image CI

on:
push:
branches:
- 'main'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to ACR
uses: docker/login-action@v3
with:
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
registry: ${{ secrets.ACR_REGISTRY }}

- name: Extract Docker metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: |
opencsg/csghub-portal
${{ secrets.ACR_REGISTRY }}/opencsg_public/csghub_portal
tags: |
type=raw,value=latest
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64
Original file line number Diff line number Diff line change
@@ -20,33 +20,42 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to ACR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
registry: ${{ secrets.ACR_REGISTRY }}

- name: Extract Docker metadata (tags, labels)
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
opencsg/csghub-portal
${{ secrets.ACR_REGISTRY }}/opencsg_public/csghub_portal
tags: |
type=ref,event=tag
flavor: |
latest=false
- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64
39 changes: 33 additions & 6 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,14 @@ name: Unit Tests

on:
pull_request:
branches: [ main ]
branches:
- main
workflow_dispatch:
inputs:
branch:
description: 'Branch name'
required: true
default: 'main'

jobs:
unit-tests:
@@ -17,10 +24,30 @@ jobs:
with:
go-version: '^1.22'

- name: Yarn install
uses: borales/actions-yarn@v4
with:
cmd: install
dir: 'frontend'

- name: Yarn build
uses: borales/actions-yarn@v4
with:
cmd: build
dir: 'frontend'

- name: Install dependencies
#run: go mod tidy
run: echo "Installing dependencies ..."
run: |
echo "Installing dependencies ..."
go mod tidy
- name: Run Go unit tests
run: |
echo "Running go unit tests ..."
go test -v -cover ./...
- name: Run unit tests
#run: go test ./tests/unit/...
run: echo "Running unit tests ..."
- name: Run Vue unit tests
run: |
echo "Running vue unit tests ..."
cd 'frontend'
yarn test
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -11,6 +11,9 @@
# Test binary, built with `go test -c`
*.test

# Coverage
coverage/

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

@@ -41,3 +44,5 @@ csghub-portal

cmd/csghub-portal/__debug_*
app.log

frontend/coverage
11 changes: 8 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -32,10 +32,15 @@ csghub-build:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
DOCKER_HOST: "tcp://docker:2375"
DOCKER_TLS_CERTDIR: ""
script:
BUILDX_NO_DEFAULT_ATTESTATIONS: 1
before_script:
- apk add --no-cache --virtual .build-deps curl
- mkdir -p ~/.docker/cli-plugins
- curl -SL https://github.com/docker/buildx/releases/download/v0.17.1/buildx-v0.17.1.linux-amd64 -o ~/.docker/cli-plugins/docker-buildx
- chmod +x ~/.docker/cli-plugins/docker-buildx
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
script:
- docker buildx build --platform linux/amd64,linux/arm64 -t ${IMAGE_TAG} --push .

csghub-deploy:
stage: deploy
11 changes: 11 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
with-expecter: true
dir: "_mocks/{{.PackagePath}}"
packages:
opencsg.com/portal/pkg/utils/jwt:
config:
interfaces:
AdminHandler:
opencsg.com/portal/internal/handlers/render/base:
config:
interfaces:
RenderBase:
9 changes: 9 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -37,5 +37,14 @@
"envFile": "${workspaceFolder}/.env",
"args": ["migration", "rollback"]
},
{
"name": "Test Current File",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${fileDirname}",
"env": {},
"showLog": true
}
]
}
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
FROM opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/go-node AS build
FROM --platform=$BUILDPLATFORM opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/go-node AS builder
ARG TARGETPLATFORM
ARG BUILDPLATFORM

RUN mkdir /myapp
WORKDIR /myapp
ADD . /myapp

ENV CGO_ENABLED=0
RUN go mod tidy
RUN cd frontend && yarn install && yarn build
RUN go build -o csghub-portal ./cmd/csghub-portal
RUN GOOS=$(echo ${TARGETPLATFORM} | cut -f1 -d '/') \
GOARCH=$(echo ${TARGETPLATFORM} | cut -f2 -d '/') \
go build -o csghub-portal ./cmd/csghub-portal

FROM bitnami/minideb:latest
RUN apt update && apt install -y ca-certificates && update-ca-certificates
WORKDIR /myapp
COPY --from=build /myapp/csghub-portal /myapp/csghub-portal
COPY --from=builder /myapp/csghub-portal /myapp/csghub-portal
Loading