Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ jobs:
- name: Run Percy
if: steps.front-end-changes.outputs.matching-files != '0'
run: |
npm install -g @percy/cli
# Pinned: @percy/cli 1.31.14 and every later build (incl. 1.32.x betas)
# hang during asset discovery on the turboframe HTML fragment snapshots
npm install -g @percy/cli@1.31.13
echo "=== Installed Percy Version ==="
npx percy --version
echo "=== Running Snapshots ==="
Expand Down
2 changes: 0 additions & 2 deletions FrontEnd/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 0 additions & 56 deletions FrontEnd/scripts/playgrounds_app_link.js

This file was deleted.

37 changes: 0 additions & 37 deletions FrontEnd/styles/_package.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,43 +266,6 @@
}
}

.try-in-playground {
position: relative;

#app-download-explainer {
position: absolute;
left: -25%;
width: 150%;
margin-top: 10px;
padding: 10px;
font-size: 14px;
color: var(--page-text);
background-color: var(--panel-background);
border-top: 3px var(--panel-border) solid;
box-shadow: var(--panel-shadow);

&::before {
content: '';
position: absolute;
top: -13px;
left: 50%;
width: 0;
height: 0;
margin-left: -10px;
border-style: solid;
border-width: 0 10px 10px;
border-color: transparent transparent var(--panel-border) transparent;
}
}

@media screen and (max-width: $mobile-breakpoint) {
#app-download-explainer {
left: 10%;
width: 80%;
}
}
}

.use-this-package {
.version {
display: flex;
Expand Down
9 changes: 0 additions & 9 deletions Resources/Markdown/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ description: Frequently Asked Questions about the Swift Package Index
- [Can I contribute to the Swift Package Index?](#contributing)
- [Is there an API?](#api)
- [Why are package versions missing?](#missing-versions)
- [What is the SPI-Playgrounds app?](#spi-playgrounds-app)
- [How can I filter search results?](#search-filters)

---
Expand Down Expand Up @@ -116,14 +115,6 @@ A good way to check what the latest semantic version release of a package is is

---

<h3 id="spi-playgrounds-app">What is the SPI-Playgrounds app?</h3>

Have you ever wanted to try out a package in a Swift playground before you decide to use it? Click “Try in a Playground” from any package page and have the Swift Package Index Playgrounds app create a playground with the package automatically imported, ready for testing and experimentation.

If you don't have the SPI-Playgrounds app installed, you can [download it for macOS here](/try-in-a-playground).

---

<h3 id="search-filters">How can I filter search results?</h3>

You can narrow package search results with a search syntax that filters based on package metadata. For example, you could search for packages that [match "networking" and have more than 500 stars](https://swiftpackageindex.com/search?query=networking+stars%3A%3E500).
Expand Down
19 changes: 0 additions & 19 deletions Resources/Markdown/try-package.md

This file was deleted.

5 changes: 0 additions & 5 deletions Sources/App/Core/SiteURL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ enum SiteURL: Resourceable, Sendable {
case siteMapStaticPages
case stylesheets(String)
case supporters
case tryInPlayground
case healthCheck
case validateSPIManifest

Expand Down Expand Up @@ -260,9 +259,6 @@ enum SiteURL: Resourceable, Sendable {
case let .stylesheets(name):
return "/\(name).css"

case .tryInPlayground:
return "try-in-a-playground"

case .healthCheck:
return "health-check"

Expand All @@ -287,7 +283,6 @@ enum SiteURL: Resourceable, Sendable {
.siteMapIndex,
.siteMapStaticPages,
.supporters,
.tryInPlayground,
.healthCheck,
.validateSPIManifest:
return [.init(stringLiteral: path)]
Expand Down
20 changes: 0 additions & 20 deletions Sources/App/Views/PackageController/PackageShow+View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -237,26 +237,6 @@ extension PackageShow {
"View on GitHub"
)
),
.li(
.class("try-in-playground"),
.a(
.href("spi-playgrounds://open?dependencies=\(model.repositoryOwner)/\(model.repositoryName)"),
"Try in a Playground"
),
.div(
.id("app-download-explainer"),
.class("hidden"),
.strong("Launching the SPI Playgrounds app&hellip;"),
.p(
.text("If nothing happens, you may not have the app installed. "),
.a(
.href(SiteURL.tryInPlayground.relativeURL(parameters: [QueryParameter(key: "dependencies", value: "\(model.repositoryOwner)/\(model.repositoryName)")])),
"Download the Swift Package Index Playgrounds app"
),
.text(" and try again.")
)
)
),
.unwrap(model.homepageUrl) { homepageUrl in
.li(
.a(
Expand Down
4 changes: 0 additions & 4 deletions Sources/App/routes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ func routes(_ app: Application) throws {
app.get(SiteURL.privacy.pathComponents) { req in
MarkdownPage(path: req.url.path, "privacy.md").document()
}

app.get(SiteURL.tryInPlayground.pathComponents) { req in
MarkdownPage(path: req.url.path, "try-package.md").document()
}
}

try docRoutes(app)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/Alamo/Alamofire">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=Alamo/Alamofire">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=Alamo/Alamofire">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
<li>
<a href="https://swiftpackageindex.com/" data-turbo="false">Package Homepage</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/Alamo/Alamofire">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=Alamo/Alamofire">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=Alamo/Alamofire">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
<li>
<a href="https://swiftpackageindex.com/" data-turbo="false">Package Homepage</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/owner/repo">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=owner/repo">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=owner/repo">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
</ul>
</section>
<hr class="minor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/Alamo/Alamofire">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=Alamo/Alamofire">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=Alamo/Alamofire">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
<li>
<a href="https://swiftpackageindex.com/" data-turbo="false">Package Homepage</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/Alamo/Alamofire">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=Alamo/Alamofire">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=Alamo/Alamofire">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
</ul>
</section>
<hr class="minor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/Alamo/Alamofire">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=Alamo/Alamofire">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=Alamo/Alamofire">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
</ul>
</section>
<hr class="minor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/Alamo/Alamofire">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=Alamo/Alamofire">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=Alamo/Alamofire">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
</ul>
</section>
<hr class="minor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/Alamo/Alamofire">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=Alamo/Alamofire">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=Alamo/Alamofire">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
</ul>
</section>
<hr class="minor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/Alamo/Alamofire">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=Alamo/Alamofire">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=Alamo/Alamofire">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
</ul>
</section>
<hr class="minor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,6 @@ <h3>Compatibility</h3>
<li>
<a class="github" href="https://github.com/Alamo/Alamofire">View on GitHub</a>
</li>
<li class="try-in-playground">
<a href="spi-playgrounds://open?dependencies=Alamo/Alamofire">Try in a Playground</a>
<div id="app-download-explainer" class="hidden">
<strong>Launching the SPI Playgrounds app&hellip;</strong>
<p>If nothing happens, you may not have the app installed.
<a href="/try-in-a-playground?dependencies=Alamo/Alamofire">Download the Swift Package Index Playgrounds app</a> and try again.
</p>
</div>
</li>
</ul>
</section>
<hr class="minor"/>
Expand Down
Loading
Loading