mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-20 14:01:24 +00:00
Compare commits
1 Commits
v1.0.0-rc.
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e84fdf13fa |
@ -4,10 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
# Match stable and rc versions, such as 'v1.0.0' or 'v0.23.0-rc.0'
|
# Match stable and rc versions, such as 'v1.0.0' or 'v0.23.0-rc.0'
|
||||||
# - "v*.*.*"
|
- "v*.*.*"
|
||||||
# - "v*.*.*-rc.*"
|
- "v*.*.*-rc.*"
|
||||||
- "v*.*.*-e"
|
|
||||||
- "v*.*.*-rc.*-e"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-stable-image:
|
build-and-push-stable-image:
|
||||||
@ -34,7 +32,7 @@ jobs:
|
|||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: aykhans
|
username: yourselfhosted
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
@ -51,7 +49,7 @@ jobs:
|
|||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
aykhans/slash
|
yourselfhosted/slash
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}},value=${{ env.VERSION }}
|
type=semver,pattern={{version}},value=${{ env.VERSION }}
|
||||||
type=raw,value=stable
|
type=raw,value=stable
|
||||||
@ -67,7 +65,7 @@ jobs:
|
|||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
aykhans/slash
|
yourselfhosted/slash
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=${{ env.VERSION }}
|
type=raw,value=${{ env.VERSION }}
|
||||||
labels: |
|
labels: |
|
||||||
|
@ -2,11 +2,7 @@ import react from "@vitejs/plugin-react-swc";
|
|||||||
import { resolve } from "path";
|
import { resolve } from "path";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
|
||||||
let devProxyServer = "http://localhost:8082/";
|
const devProxyServer = "http://localhost:8082/";
|
||||||
if (process.env.DEV_PROXY_SERVER && process.env.DEV_PROXY_SERVER.length > 0) {
|
|
||||||
console.log("Use devProxyServer from environment: ", process.env.DEV_PROXY_SERVER);
|
|
||||||
devProxyServer = process.env.DEV_PROXY_SERVER;
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -30,4 +26,13 @@ export default defineConfig({
|
|||||||
"@/": `${resolve(__dirname, "src")}/`,
|
"@/": `${resolve(__dirname, "src")}/`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
entryFileNames: "app.[hash].js",
|
||||||
|
chunkFileNames: "assets/chunk-vendors.[hash].js",
|
||||||
|
assetFileNames: "assets/[name].[hash][extname]",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -76,7 +76,6 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
|
|||||||
return nil, errors.Wrap(err, "failed to register gRPC gateway")
|
return nil, errors.Wrap(err, "failed to register gRPC gateway")
|
||||||
}
|
}
|
||||||
|
|
||||||
s.apiV1Service.LicenseService.UpdateSubscription(ctx, "ajiiiiidiidjijijwidjidijiwodjn")
|
|
||||||
return s, nil
|
return s, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,20 +136,6 @@ type Claims struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func validateLicenseKey(licenseKey string) (*ValidateResult, error) {
|
func validateLicenseKey(licenseKey string) (*ValidateResult, error) {
|
||||||
result := &ValidateResult{
|
|
||||||
Plan: 3,
|
|
||||||
ExpiresTime: time.Date(2050, 12, 31, 23, 59, 59, 0, time.UTC),
|
|
||||||
Trial: false,
|
|
||||||
}
|
|
||||||
result.Features = getDefaultFeatures(result.Plan)
|
|
||||||
result.Features = append(result.Features, FeatureTypeSSO)
|
|
||||||
result.Features = append(result.Features, FeatureTypeAdvancedAnalytics)
|
|
||||||
result.Features = append(result.Features, FeatureTypeUnlimitedAccounts)
|
|
||||||
result.Features = append(result.Features, FeatureTypeUnlimitedShortcuts)
|
|
||||||
result.Features = append(result.Features, FeatureTypeUnlimitedCollections)
|
|
||||||
result.Features = append(result.Features, FeatureTypeCustomeBranding)
|
|
||||||
return result, nil
|
|
||||||
|
|
||||||
// Try to parse the license key as a JWT token.
|
// Try to parse the license key as a JWT token.
|
||||||
claims, _ := parseLicenseKey(licenseKey)
|
claims, _ := parseLicenseKey(licenseKey)
|
||||||
if claims != nil {
|
if claims != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user