Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
a504ebda
Commit
a504ebda
authored
May 21, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: apollo调试
parent
65335ec1
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
30 additions
and
19 deletions
+30
-19
index.ts
app/web/config/index.ts
+1
-1
test.config.ts
app/web/config/test.config.ts
+13
-3
typings.d.ts
app/web/config/typings.d.ts
+4
-0
apollo.json
config/apollo.json
+4
-4
config.default.ts
config/config.default.ts
+1
-4
index.d.ts
typings/app/controller/index.d.ts
+1
-1
helper.d.ts
typings/app/extend/helper.d.ts
+1
-1
index.d.ts
typings/app/index.d.ts
+1
-1
index.d.ts
typings/app/middleware/index.d.ts
+1
-1
index.d.ts
typings/app/model/index.d.ts
+1
-1
index.d.ts
typings/app/service/index.d.ts
+1
-1
plugin.d.ts
typings/config/plugin.d.ts
+1
-1
No files found.
app/web/config/index.ts
View file @
a504ebda
...
...
@@ -3,4 +3,4 @@ import dev from './dev.config';
import
test
from
'
./test.config
'
;
// export default process.env.NODE_ENV === 'test' ? test : process.env.NODE_ENV === 'production' ? prod : dev;
export
default
process
.
env
.
SENTRY_ENV
?
test
:
process
.
env
.
NODE_ENV
===
'
production
'
?
prod
:
dev
;
export
default
process
.
env
.
SENTRY_ENV
?
test
:
process
.
env
.
NODE_ENV
===
'
production
'
?
prod
:
dev
;
app/web/config/test.config.ts
View file @
a504ebda
// const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https';
// export default {
// apiHost: `https://quantum-blocks-vcc2.liangkebang.net/`,
// h5Host: 'https://quantum-h5-vcc2.liangkebang.net/',
// opapiHost: 'https://opapi-vcc2.liangkebang.net',
// qiniuHost: `https://appsync.lkbang.net/`,
// shenceUrl: `${protocol}//bn.xyqb.com/sa?project=production`,
// qiniuUpHost: `${protocol}//up-z0.qiniup.com`,
// };
import
apollo
from
'
../../../config/apollo.json
'
;
const
protocol
=
EASY_ENV_IS_BROWSER
?
window
.
location
.
protocol
:
'
https
'
;
const
{
api
,
qiniu
}
=
EASY_ENV_IS_BROWSER
?
window
.
apollo
:
{
api
:
{},
qiniu
:
{}
};
export
default
{
...
api
,
...
qiniu
,
...
ap
ollo
.
ap
i
,
...
apollo
.
qiniu
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=production`
,
};
app/web/config/typings.d.ts
0 → 100644
View file @
a504ebda
declare
module
"
*.json
"
{
const
value
:
any
;
export
default
value
;
}
\ No newline at end of file
config/apollo.json
View file @
a504ebda
...
...
@@ -6,16 +6,16 @@
},
"mysql"
:
{
"low_code"
:
{
"host"
:
"
mysql
"
,
"port"
:
"
3306
"
,
"host"
:
"
undefined
"
,
"port"
:
"
undefined
"
,
"username"
:
"qa"
,
"password"
:
"qatest"
,
"database"
:
"low_code"
}
},
"redis"
:
{
"port"
:
"
6379
"
,
"host"
:
"
redis
"
,
"port"
:
"
undefined
"
,
"host"
:
"
undefined
"
,
"password"
:
""
,
"db"
:
0
},
...
...
config/config.default.ts
View file @
a504ebda
import
{
EggAppConfig
}
from
'
egg
'
;
import
*
as
fs
from
'
fs
'
;
import
*
as
path
from
'
path
'
;
import
apollo
from
'
../config/apollo.json
'
;
const
{
api
,
qiniu
}
=
apollo
;
export
default
(
appInfo
:
EggAppConfig
)
=>
{
const
config
:
any
=
{};
config
.
siteFile
=
{
'
/favicon.ico
'
:
fs
.
readFileSync
(
path
.
join
(
appInfo
.
baseDir
,
'
app/web/asset/images/favicon.ico
'
)),
'
/apiHost.js
'
:
`var apollo =
${
JSON
.
stringify
({
api
,
qiniu
})}
`
,
'
/favicon.ico
'
:
fs
.
readFileSync
(
path
.
join
(
appInfo
.
baseDir
,
'
app/web/asset/images/favicon.ico
'
))
};
config
.
view
=
{
...
...
typings/app/controller/index.d.ts
View file @
a504ebda
// This file is created by egg-ts-helper@1.25.
8
// This file is created by egg-ts-helper@1.25.
9
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
...
...
typings/app/extend/helper.d.ts
View file @
a504ebda
// This file is created by egg-ts-helper@1.25.
8
// This file is created by egg-ts-helper@1.25.
9
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
...
...
typings/app/index.d.ts
View file @
a504ebda
// This file is created by egg-ts-helper@1.25.
8
// This file is created by egg-ts-helper@1.25.
9
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
...
...
typings/app/middleware/index.d.ts
View file @
a504ebda
// This file is created by egg-ts-helper@1.25.
8
// This file is created by egg-ts-helper@1.25.
9
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
...
...
typings/app/model/index.d.ts
View file @
a504ebda
// This file is created by egg-ts-helper@1.25.
8
// This file is created by egg-ts-helper@1.25.
9
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
...
...
typings/app/service/index.d.ts
View file @
a504ebda
// This file is created by egg-ts-helper@1.25.
8
// This file is created by egg-ts-helper@1.25.
9
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
...
...
typings/config/plugin.d.ts
View file @
a504ebda
// This file is created by egg-ts-helper@1.25.
8
// This file is created by egg-ts-helper@1.25.
9
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment