Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bsp-usecase-wizard
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cls
bsp-usecase-wizard
Commits
67028e2e
Unverified
Commit
67028e2e
authored
1 year ago
by
stefanoantonel
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix BlueNaaS model urls (#32)
parent
c97eba41
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
package.json
+1
-1
1 addition, 1 deletion
package.json
src/components/ModelSelection.svelte
+1
-1
1 addition, 1 deletion
src/components/ModelSelection.svelte
src/helpers/models.ts
+0
-2
0 additions, 2 deletions
src/helpers/models.ts
with
2 additions
and
4 deletions
package.json
+
1
−
1
View file @
67028e2e
{
{
"name"
:
"svelte-app"
,
"name"
:
"svelte-app"
,
"version"
:
"1.5.
3
"
,
"version"
:
"1.5.
4
"
,
"scripts"
:
{
"scripts"
:
{
"build"
:
"rollup -c"
,
"build"
:
"rollup -c"
,
"dev"
:
"sh usecases-schema-to-ts.sh && rollup -c -w"
,
"dev"
:
"sh usecases-schema-to-ts.sh && rollup -c -w"
,
...
...
This diff is collapsed.
Click to expand it.
src/components/ModelSelection.svelte
+
1
−
1
View file @
67028e2e
...
@@ -179,7 +179,7 @@
...
@@ -179,7 +179,7 @@
.model-section-container
.model-list
{
.model-section-container
.model-list
{
grid-area
:
list
;
grid-area
:
list
;
max-height
:
70vh
;
max-height
:
70vh
;
overflow
:
scroll
;
overflow
:
auto
;
padding
:
10px
;
padding
:
10px
;
}
}
.model-section-container
.models-selected-info
{
.model-section-container
.models-selected-info
{
...
...
This diff is collapsed.
Click to expand it.
src/helpers/models.ts
+
0
−
2
View file @
67028e2e
...
@@ -123,7 +123,6 @@ export async function updateOrCreateModelsJson() {
...
@@ -123,7 +123,6 @@ export async function updateOrCreateModelsJson() {
}
}
function
fillModelUrl
(
placeholderUrl
:
string
,
uc
:
UsecaseItem
)
{
function
fillModelUrl
(
placeholderUrl
:
string
,
uc
:
UsecaseItem
)
{
const
BLUE_NAAS_KEY
=
'
bluenaas=true
'
;
if
(
uc
.
maxModelSelection
!==
1
)
{
if
(
uc
.
maxModelSelection
!==
1
)
{
errorMessage
.
set
(
'
Multiple models in URL not supported yet
'
);
errorMessage
.
set
(
'
Multiple models in URL not supported yet
'
);
return
null
;
return
null
;
...
@@ -147,7 +146,6 @@ function fillModelUrl(placeholderUrl: string, uc: UsecaseItem) {
...
@@ -147,7 +146,6 @@ function fillModelUrl(placeholderUrl: string, uc: UsecaseItem) {
// this way we obtain the latest source available in the instances
// this way we obtain the latest source available in the instances
const
source
=
instance
?.
source
;
const
source
=
instance
?.
source
;
if
(
!
source
)
return
prev
;
if
(
!
source
)
return
prev
;
if
(
!
source
.
includes
(
BLUE_NAAS_KEY
))
return
prev
;
const
trimmed
=
source
.
replace
(
/^.+AUTH_.+
?\/
/
,
''
);
const
trimmed
=
source
.
replace
(
/^.+AUTH_.+
?\/
/
,
''
);
if
(
!
trimmed
)
return
prev
;
if
(
!
trimmed
)
return
prev
;
return
prev
=
trimmed
;
return
prev
=
trimmed
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment