Skip to content

Commit d23dc7c

Browse files
committed
Changes to support joining Apple with Swift Package Index.
1 parent 450cd76 commit d23dc7c

129 files changed

Lines changed: 937 additions & 2755 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

FrontEnd/main.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
@use 'styles/search_results';
4141
@use 'styles/search';
4242
@use 'styles/spinner';
43-
@use 'styles/supporters';
4443
@use 'styles/tab_bar';
4544
@use 'styles/validate_manifest';
4645
@use 'styles/vega_charts';
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
export function measurePlausibleEvent(event, options = {}) {
16-
if (typeof plausible === 'function') {
17-
// eslint-disable-next-line no-undef
18-
plausible(event, options)
19-
}
15+
export function measureAnalyticsEvent(event, options = {}) {
16+
console.log(`Analytics event: ${event}`, options)
2017
}

FrontEnd/scripts/controllers/panel_button_controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
// limitations under the License.
1414

1515
import { Controller } from '@hotwired/stimulus'
16-
import { measurePlausibleEvent } from '../plausible_analytics'
16+
import { measureAnalyticsEvent } from '../analytics'
1717

1818
export class PanelButtonController extends Controller {
1919
static values = { analyticsEvent: String }
2020

2121
click(event) {
22-
measurePlausibleEvent('Panel Button Clickthrough', {
22+
measureAnalyticsEvent('Panel Button Clickthrough', {
2323
props: {
2424
panel: this.analyticsEventValue,
2525
},

FrontEnd/scripts/copy_buttons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import { measurePlausibleEvent } from './plausible_analytics.js'
15+
import { measureAnalyticsEvent } from './analytics.js'
1616

1717
class SPICopyButton {
1818
installCopyEvent(button, contentElement, analyticsEvent) {
@@ -43,7 +43,7 @@ class SPICopyButton {
4343
}, 1000)
4444

4545
// Log the analytics event.
46-
measurePlausibleEvent(analyticsEvent)
46+
measureAnalyticsEvent(analyticsEvent)
4747
})
4848
})
4949
}

FrontEnd/styles/_blog.scss

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ body.blog {
3333
font-size: 30px;
3434
}
3535

36+
3637
// We use a different style on the blog and import highlight.js directly, so
3738
// the background for a code snipplet here needs to match the background colour
3839
// of the theme specified in `FrontEnd/styles/main.css`.
@@ -63,16 +64,6 @@ body.blog {
6364
}
6465
}
6566

66-
.sidebar {
67-
float: right;
68-
display: flex;
69-
flex-direction: column;
70-
gap: 20px;
71-
width: 320px;
72-
padding: 0 0 10px 40px;
73-
background-color: var(--page-background);
74-
}
75-
7667
ul.blog-posts {
7768
padding: 0;
7869
list-style: none;

FrontEnd/styles/_colors.scss

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,6 @@
175175

176176
--package-funding-background: var(--very-light-grey);
177177

178-
--scta-avatar-gradient: linear-gradient(
179-
rgb(241 241 241 / 0%) 0,
180-
rgb(241 241 241 / 0%) 50%,
181-
rgb(241 241 241 / 100%) 100%
182-
);
183-
--scta-panel-accent: var(--pink);
184-
--ccta-panel-accent: var(--mid-blue);
185-
--ghcta-panel-accent: var(--pink);
186-
--podcast-panel-background: var(--very-light-blue);
187-
--podcast-panel-accent: var(--light-blue);
188-
189-
--avatar-shadow: 0 2px 2px 3px rgb(0 0 0 / 5%);
190178

191179
--rss-subscribe-color: var(--orange);
192180

@@ -235,9 +223,6 @@
235223
--panel-border: var(--dark-grey);
236224
--panel-underlay-opacity: 0.8;
237225

238-
--podcast-panel-background: var(--very-dark-blue);
239-
--podcast-panel-accent: var(--dark-blue);
240-
241226
--green-text: var(--mid-green);
242227

243228
--note-text: var(--mid-green);
@@ -313,12 +298,6 @@
313298

314299
--package-funding-background: var(--very-dark-grey);
315300

316-
--scta-avatar-gradient: linear-gradient(
317-
rgb(25 25 35 / 0%) 0,
318-
rgb(25 25 35 / 0%) 50%,
319-
rgb(25 25 35 / 100%) 100%
320-
);
321-
322301
--debug-console-background: var(--dark-blue);
323302
--debug-console-border: var(--light-grey);
324303
--debug-console-button-hover: var(--dark-grey);

FrontEnd/styles/_header_footer.scss

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ header {
8181
align-items: center;
8282

8383
a {
84-
&.supporters {
85-
padding-left: 28px;
86-
background-position: left 5px center;
87-
background-repeat: no-repeat;
88-
background-size: 19px;
89-
background-image: var(--image-heart);
90-
}
91-
9284
&:hover {
9385
border-color: var(--header-link-highlight);
9486
}
@@ -112,13 +104,18 @@ footer {
112104
position: sticky;
113105
top: 100vh;
114106

107+
a[href^='mailto:'] {
108+
font-weight: 400;
109+
}
110+
115111
.inner {
116112
padding: 20px 10px;
117113
}
118114

119115
nav {
120116
display: flex;
121117
flex-direction: column;
118+
gap: 15px;
122119
align-items: center;
123120

124121
p {
@@ -136,10 +133,6 @@ footer {
136133
a {
137134
font-size: 12px;
138135
}
139-
140-
@media screen and (max-width: $mobile-breakpoint) {
141-
margin-top: 10px;
142-
}
143136
}
144137

145138
ul {

FrontEnd/styles/_home.scss

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
// -------------------------------------------------------------------------
2020

2121
body.home {
22-
.two-column {
23-
grid-template-columns: 4fr 2fr;
22+
main > .inner {
23+
max-width: 680px;
2424
}
2525
}
2626

@@ -55,40 +55,3 @@ body.home {
5555
grid-template-columns: 1fr;
5656
}
5757
}
58-
59-
.supporter-ctas {
60-
display: flex;
61-
flex-direction: column;
62-
gap: 15px;
63-
64-
.ccta picture {
65-
width: 100%;
66-
height: 60px;
67-
text-align: center;
68-
69-
img {
70-
width: 100%;
71-
height: 100%;
72-
object-fit: contain;
73-
}
74-
}
75-
}
76-
77-
.ccta-availability {
78-
padding: 15px;
79-
font-size: 13px;
80-
background-color: var(--panel-button-background);
81-
82-
p {
83-
margin: 5px 0;
84-
}
85-
86-
.support {
87-
margin: 0 0 5px;
88-
font-weight: bold;
89-
}
90-
91-
.cta {
92-
text-align: right;
93-
}
94-
}

0 commit comments

Comments
 (0)