Skip to content

Commit

Permalink
refactor: [email protected] remove ghproxy because server is down #192
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Dec 20, 2023
1 parent 9b48a1b commit 445b538
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tailchat-cli",
"version": "1.5.13",
"version": "1.5.14",
"description": "A Command line interface of tailchat",
"bin": {
"tailchat": "./bin/cli"
Expand Down
7 changes: 2 additions & 5 deletions apps/cli/src/commands/declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ import fs, { mkdirp } from 'fs-extra';
import path from 'path';
import ora from 'ora';
import got from 'got';
import { withGhProxy } from '../utils';

const onlineDeclarationUrl = withGhProxy(
'https://raw.githubusercontent.com/msgbyte/tailchat/master/client/web/tailchat.d.ts'
);

const onlineDeclarationUrl =
'https://raw.githubusercontent.com/msgbyte/tailchat/master/client/web/tailchat.d.ts';
export const declarationCommand: CommandModule = {
command: 'declaration <source>',
describe: 'Tailchat plugin type declaration',
Expand Down
10 changes: 4 additions & 6 deletions apps/cli/src/commands/docker/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ Run the following command to complete the image download and start:
- ${chalk.bold('docker compose up -d')} ${chalk.gray('# Start service')}
================`);

const envUrl = withGhProxy(
'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.env'
);
const configUrl = withGhProxy(
'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.yml'
);
const envUrl =
'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.env';
const configUrl =
'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.yml';

export const dockerInitCommand: CommandModule = {
command: 'init',
Expand Down
2 changes: 2 additions & 0 deletions apps/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export function isDev(): boolean {

/**
* Add github resource proxy to optimize chinese access speed
*
* @deprecated this website is down
*/
export function withGhProxy(url: string): string {
return `https://ghproxy.com/${url}`;
Expand Down

0 comments on commit 445b538

Please sign in to comment.