Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Aug 9, 2023
1 parent 390caab commit 537b548
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 9 deletions.
25 changes: 17 additions & 8 deletions src/playground/interface.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,31 @@ a {
color: #4af;
}

.unshared-update {
.infobox {
line-height: 1.5em;
padding: 0.5rem;
margin: 5px 0 8px 0;
border: 1px solid #ffb9b9;
background-color: #ffdbdb;
border-radius: 0.5rem;
border: 1px solid #b9d6ff;
background-color: #dbebff;
}
[theme="dark"] .unshared-update {
border-color: #6a2929;
background-color: #452222;
[theme="dark"] .infobox {
border-color: #203652;
background-color: #16202c;
}
.unshared-update p {
.infobox p {
margin: 4px 0;
}
.unshared-update a {
.infobox a {
font-weight: bold;
text-decoration: none;
}

.unshared-update {
border-color: #ffb9b9;
background-color: #ffdbdb;
}
[theme="dark"] .unshared-update {
border-color: #6a2929;
background-color: #452222;
}
18 changes: 17 additions & 1 deletion src/playground/render-interface.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class Interface extends React.Component {
// eslint-disable-next-line max-len
description.instructions === 'unshared' || description.credits === 'unshared'
) && (
<div className={styles.unsharedUpdate}>
<div className={classNames(styles.infobox, styles.unsharedUpdate)}>
<p>
<FormattedMessage
defaultMessage="Unshared projects are no longer visible."
Expand Down Expand Up @@ -320,6 +320,22 @@ class Interface extends React.Component {
</div>
) : null}
<div className={styles.section}>
<p className={styles.infobox}>
<a
href="https://turbowarp.org/august-2023-scratch-maintenance.html"
target="_blank"
rel="noreferrer"
>
{/* This will be here a few weeks, so we can translate it */}
<FormattedMessage
// eslint-disable-next-line max-len
defaultMessage="Parts of TurboWarp may be temporarily unavailable due to upcoming Scratch maintenance"
// eslint-disable-next-line max-len
description="Temporary message with a link to learn about upcoming Scratch maintenance"
id="tw.aug23downtime"
/>
</a>
</p>
<p>
<FormattedMessage
// eslint-disable-next-line max-len
Expand Down
67 changes: 67 additions & 0 deletions static/august-2023-scratch-maintenance.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>August 2023 Scratch Maintenance - TurboWarp</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: 0;
border-top: 4px solid #ff4c4c;
}
main {
max-width: 600px;
margin: auto;
}
.quote {
padding: 12px 20px;
border: 1px solid #ccc;
background-color: #f7f7f7;
}
.quote p {
font-weight: bold;
margin: 0;
}
.quote ul {
margin: 0.5rem 0 0 0;
padding: 0 0 0 1.2rem;
}
h2 {
font-size: 1.2em;
}
</style>
</head>

<body>
<main>
<h1>August 2023 Scratch Maintenance</h1>
<p>The Scratch Team <a href="https://scratch.mit.edu/discuss/topic/702112/">announced</a> that Scratch may be temporarily down for maintenance in the near future:</p>
<div class="quote">
<p>ScratchCat wrote:</p>
<ul>
<li>August 11 at 8 PM ET - August 13 at 1159 PM ET: scratch.mit.edu will be in maintenance mode during portions of this weekend, and you may not be able to access Scratch. If you want to use Scratch during this time, make sure to download the Scratch App to your device.</li>
<li>August 18, 8 PM ET - August 20, 1159 ET: Translation extension blocks, Text-To-Speech extension blocks, and access to projects and assets will be temporarily unavailable during portions of the weekend. The rest of the site should be working normally during this time.</li>
<li>August 25, 8 PM ET - August 27, 1159 ET: The Backpack tool, Cloud Data, and thumbnail updates will be temporarily unavailable during portions of the weekend. The rest of the site should be working normally during this time.</li>
</ul>
</div>

<p>Parts of this maintenance will impact TurboWarp and other tools that use the Scratch API. We're assuming this maintenance is mostly internal stuff and that there won't be significant outwards changes.</p>

<h2>What won't be affected</h2>
<p>All of the TurboWarp websites will be up. You will still be able to load projects saved to your computer using the <a href="https://turbowarp.org/editor">website</a>, <a href="https://desktop.turbowarp.org/">desktop app</a>, or <a href="https://forkphorus.github.io/">packager</a>. Packaged projects will still load. TurboWarp's backpack and restore points will be unaffected.</p>

<h2>August 11 at 8 PM ET &ndash; August 13 at 11:59 PM ET</h2>
<p>Loading projects from the Scratch website <b>might</b> work. (Forum post is a bit vague)</p>

<h2>August 18 at 8 PM ET &ndash; August 20 at 11:59 PM ET</h2>
<p>Loading projects from the Scratch website <b>may not</b> work anywhere. Translate blocks and text-to-speech blocks <b>may not</b> work in any project. (We cache translate requests, so some common translations may still work)</p>

<h2>August 25 at 8 PM ET &ndash; August 27 at 11:59 PM ET</h2>
<p>No effect anticipated.</p>

<h2>If Scratch does make significant changes</h2>
<p>It will take a bit longer, but we will get everything working again shortly.</p>
</main>
</body>
</html>

0 comments on commit 537b548

Please sign in to comment.