This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Add mini browser as install task #168
Draft
narendra-drupal
wants to merge
2
commits into
phenaproxima:main
Choose a base branch
from
narendra-drupal:recipe_browser_in_install_tasks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace Drupal\starshot_installer\Routing; | ||
|
||
use Drupal\Core\Installer\InstallerKernel; | ||
use Drupal\Core\Routing\RouteSubscriberBase; | ||
use Symfony\Component\Routing\RouteCollection; | ||
|
||
/** | ||
* Listens to the dynamic route events. | ||
*/ | ||
class RouteSubscriber extends RouteSubscriberBase { | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function alterRoutes(RouteCollection $collection) { | ||
if (InstallerKernel::installationAttempted()) { | ||
// Always allow access if installation is currently being attempted. | ||
$routes = [ | ||
'project_browser.api_get_categories', | ||
'project_browser.api_project_get_all', | ||
'project_browser.browse', | ||
]; | ||
foreach ($routes as $route) { | ||
$route = $collection->get($route); | ||
if ($route) { | ||
$route->setRequirements([ | ||
'_access' => 'TRUE', | ||
]); | ||
} | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
services: | ||
starshot_installer.route_subscriber: | ||
class: Drupal\starshot_installer\Routing\RouteSubscriber | ||
tags: | ||
- { name: event_subscriber } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
diff --git a/sveltejs/public/build/bundle.js b/sveltejs/public/build/bundle.js | ||
index 77726f38845aab0952ba9f3b9f7640a3e39b1a8f..638c3052d89ff0f256e35379fcc7e20758ee2fe9 100644 | ||
GIT binary patch | ||
delta 1408 | ||
zcmZvce@t6d6vuP!ZGje~Ex(3YH*U&+cB{0nKY%j3h!c?v7!LWvkqKQ}ph?%q+9Kiv | ||
z8Cj-b1D(Yk9W#@-Y(U)5_{Yt3ptwZEXcnU`Q|6B?`)5XQ@edQCPH*RiE&Bd>FZX=U | ||
zIiGXxIq!v;tf`N)-kKQ9XX5e7p-7a~Hnl$7Tvyjxzx|<V=8j$MXPQ8ywY@tSY~3UK | ||
z{F~KkJex(>JM)9rhu1h=l~xnmR~Tqd^25EePyoBR!33`mYTw}CGn=3w4L_&_4Srrm | ||
zwfMUomT|!j>HJRzT*!%QPy&+A7i!^3N?f=Ww|xP6zSIbpAg<J+8%PHKeh2)NiUadR | ||
zL8S^OPHVvlc6|F+l8uM+h%UDLRTWMbLp8Qkz&aebNX%$q)WG#wU<TazEa-S78_okb | ||
zxHT7sDREj+d=%orS*nX&KBL3M1wo~`7w)G*Q>TZom1<X|bf-+z$%5>~?U0Kt1{jNj | ||
zrs2<8k?QbXx;CCU#7`E&4FDI86v4GPxe9L?;1pk10(k@*KO{OF_>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
ze}-?Y>>FP>dis6Dvn5qn=bc^mdW5ftcV2{-_qQUOeJRFcpHxhx#qHT24mUS(_Bzt} | ||
z+!)GuWtH(f&t8-%9L<JLJ-HtF_?K$=3dwx8LAuo5mvIU3C~G5nq$u`LU$WFUn-G$E | ||
z`b;IJZ1JUjci~#=Kvt-h)eU%p=_XQGz7@xK%MUw4+wi$M62MPDDLY@okIZ!;iIt{s | ||
zapyX@n$=_4leUw^Hv(9zoZFEi)YC3>3*Ix4q^6SKw8ylZY@9>_7fj6azz#UoqpL8U | ||
z%&R__9M3i~mEpm7T#PhXS#Kor@Pe?bUwycZ81GQu`|-yk+$@EIiFt-Yd3T{=jZxzD | ||
z7c<x)av6OO`{ChbQ&b7JoAXDcsRj?CS{R-}ZwVuxB9HkWU_0FWrC*lEm<da4)Tc`S | ||
z5Z?-0Ns+&39mh5yl~;14L#2L%KcVT%{YHUW|1oNHYCPM6fS#cj<@#08i@*wZRlZeM | ||
z6W-lWQ_IANjw54-u(Rwfk*;QXaZNYC(ZdKx&9Smm$D0v>*Wsxu*wd_QZDeKyY20v7 | ||
zC)5?uJ-XFs1UB0e*LVA|<-e{io+7gK>?U!2k?dFwwGYG~b#egT$wexUr;q<%FEseK | ||
zUf&>YEFq5#VFmk!@al5qS56>DE4QA&UV{%#p$3H<{#j<Ime0^>(?1V~bxwxcTjJx` | ||
zd6CA==ip*^1VJW5G0{C8g_@3v$qSjK{(tt*+7}E5UubI!zFp8z(^MC(x1KGtJpAEn | ||
zk;z?$WE|i5T_h;ub(w2Nv3jaap3^(2?z}0_B=P8^POs{aE^VY+7J{?MvQ_E#Oo;JO | ||
Zkw8zo@i+(Oq{)dP<0bXmoc!{OzX03eDrEow | ||
|
||
diff --git a/sveltejs/public/build/bundle.js.map b/sveltejs/public/build/bundle.js.map | ||
index b8b9abd3aeb50472487df518895306cb44580c54..e1d841c73fb364da88d76c8cf5b486c3e4a9d010 100644 | ||
GIT binary patch | ||
delta 1379 | ||
zcma)4UrbwN6wi0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6{-cAd$0`kIJK-f#|l*a8-S))pfQ^Dk?{kxMe5pA(cJFB7cx&W | ||
zsY;m;Wr|k_uc8W}VwR38a-UO(Zd{aka@2nZINu9a^o1dUY44k%lBU8i${}BE#+(?~ | ||
zMu)${r$qcX1_u0c0}T4gzm-Di!*LT=a5Wlqyhgb5Xu-rUW^VEh*?1OKh9Hq1*?7D0 | ||
E54P;z*8l(j | ||
|
||
diff --git a/sveltejs/src/ProjectBrowser.svelte b/sveltejs/src/ProjectBrowser.svelte | ||
index 8bf58aa..0ea1d82 100644 | ||
--- a/sveltejs/src/ProjectBrowser.svelte | ||
+++ b/sveltejs/src/ProjectBrowser.svelte | ||
@@ -102,9 +102,9 @@ | ||
); | ||
} | ||
|
||
- const url = Drupal.url( | ||
- `drupal-org-proxy/project?${searchParams.toString()}`, | ||
- ); | ||
+ const url = `${window.location.protocol}//${ | ||
+ window.location.host | ||
+ }/drupal-org-proxy/project?${searchParams.toString()}`; | ||
|
||
const res = await fetch(url); | ||
if (res.ok) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was done to avoid appending url to
/core/install.php
.