Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
86061777
Commit
86061777
authored
Aug 03, 2021
by
ioedeveloper
Committed by
yann300
Aug 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Github import from homepage
parent
fa595b46
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
app.js
apps/remix-ide/src/app.js
+1
-1
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+4
-4
compiler-content-imports.ts
libs/remix-core-plugin/src/lib/compiler-content-imports.ts
+6
-1
No files found.
apps/remix-ide/src/app.js
View file @
86061777
...
...
@@ -338,7 +338,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const
hiddenPanel
=
new
HiddenPanel
()
const
pluginManagerComponent
=
new
PluginManagerComponent
(
appManager
,
engine
)
const
filePanel
=
new
FilePanel
(
appManager
)
const
landingPage
=
new
LandingPage
(
appManager
,
menuicons
,
fileManager
,
filePanel
)
const
landingPage
=
new
LandingPage
(
appManager
,
menuicons
,
fileManager
,
filePanel
,
contentImport
)
const
settings
=
new
SettingsTab
(
registry
.
get
(
'config'
).
api
,
editor
,
...
...
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
86061777
import
*
as
packageJson
from
'../../../../../../package.json'
import
{
ViewPlugin
}
from
'@remixproject/engine-web'
import
{
migrateToWorkspace
}
from
'../../../migrateFileSystem'
import
{
CompilerImports
}
from
'@remix-project/core-plugin'
import
JSZip
from
'jszip'
const
yo
=
require
(
'yo-yo'
)
...
...
@@ -119,11 +118,12 @@ const profile = {
}
export
class
LandingPage
extends
ViewPlugin
{
constructor
(
appManager
,
verticalIcons
,
fileManager
,
filePanel
)
{
constructor
(
appManager
,
verticalIcons
,
fileManager
,
filePanel
,
contentImport
)
{
super
(
profile
)
this
.
profile
=
profile
this
.
fileManager
=
fileManager
this
.
filePanel
=
filePanel
this
.
contentImport
=
contentImport
this
.
appManager
=
appManager
this
.
verticalIcons
=
verticalIcons
this
.
gistHandler
=
new
GistHandler
()
...
...
@@ -240,7 +240,7 @@ export class LandingPage extends ViewPlugin {
render
()
{
const
load
=
(
service
,
item
,
examples
,
info
)
=>
{
const
co
mpilerImport
=
new
CompilerImports
()
const
co
ntentImport
=
this
.
contentImport
const
fileProviders
=
globalRegistry
.
get
(
'fileproviders'
).
api
const
msg
=
yo
`
<div class="p-2">
...
...
@@ -252,7 +252,7 @@ export class LandingPage extends ViewPlugin {
const
title
=
`Import from
${
service
}
`
modalDialogCustom
.
prompt
(
title
,
msg
,
null
,
(
target
)
=>
{
if
(
target
!==
''
)
{
co
mpiler
Import
.
import
(
co
ntent
Import
.
import
(
target
,
(
loadingMsg
)
=>
{
tooltip
(
loadingMsg
)
},
(
error
,
content
,
cleanUrl
,
type
,
url
)
=>
{
...
...
libs/remix-core-plugin/src/lib/compiler-content-imports.ts
View file @
86061777
...
...
@@ -22,7 +22,12 @@ export class CompilerImports extends Plugin {
async
setToken
()
{
const
protocol
=
typeof
window
!==
'undefined'
&&
window
.
location
.
protocol
const
token
=
await
this
.
call
(
'settings'
,
'get'
,
'settings/gist-access-token'
)
let
token
try
{
token
=
await
this
.
call
(
'settings'
,
'get'
,
'settings/gist-access-token'
)
}
catch
(
error
)
{
console
.
log
(
error
)
}
this
.
urlResolver
.
setGistToken
(
token
,
protocol
)
}
...
...
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