Skip to content

Commit

Permalink
Netlify cloudflare pages migration (#14)
Browse files Browse the repository at this point in the history
* add warnings for netlify -> cloudflare pages migration

* lint

* fix check
  • Loading branch information
ConorSheehan1 authored Feb 29, 2024
1 parent f91feac commit 048e03b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Beach Litríochta

[![Build Status](https://github.com/ConorSheehan1/beach-litriochta/workflows/ci/badge.svg)](https://github.com/ConorSheehan1/beach-litriochta/actions/)
[![Netlify Status](https://api.netlify.com/api/v1/badges/4993f6ee-baeb-47bf-9e4e-69e5814aadc5/deploy-status)](https://app.netlify.com/sites/beach-litriochta/deploys)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

_Leagan Gaeilge ar an gcluiche Spelling Bee ón New York Times._
Expand All @@ -12,8 +11,9 @@ New challenge every day. Create words using letters from the hive.

## Links

https://beach-litriochta.pages.dev
~~https://beacha.ie~~
https://beach-litriochta.netlify.app
~~https://beach-litriochta.netlify.app~~

| | |
| ------------------------------------------------ | ---------------------------------------------------- |
Expand Down
20 changes: 13 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ const showGameWonModal = computed(
() => store.getProgressPercentage === 100 && gameWonModalShown.value === false
);
// TODO: remove after beacha.ie eol
let showMigrationModal = ref(false);
const checkUrl = () => {
showMigrationModal.value = window.location.href.includes("beacha.ie");
showMigrationModal.value = window.location.href.includes(
"beach-litriochta.netlify.app"
);
};
const onOpenCorrectGuesses = () => {
Expand All @@ -62,23 +63,28 @@ store.startGame({ allAnswers });
</script>

<template>
<!-- todo: remove after beacha.ie eol -->
<el-dialog v-model="showMigrationModal" title="url migration / ag bogadh url">
<div>
<p>
Ní oibreoidh an url <a href="https://beacha.ie">https://beacha.ie</a> ón
tseachtain seo chugainn. Bain úsáid as
Ní oibreoidh an url
<a href="https://beach-litriochta.netlify.app"
>https://beach-litriochta.netlify.app</a
>
ón tseachtain seo chugainn. Bain úsáid as
<a href="https://beach-litriochta.pages.dev"
>https://beach-litriochta.pages.dev</a
>
ina ionad le do thoil. Gabh mo leithscéal as ucht an bhfógra déanach!
</p>
<p>
The <a href="https://beacha.ie">https://beacha.ie</a> url will not work
from next week. Please use
The
<a href="https://beach-litriochta.netlify.app"
>https://beach-litriochta.netlify.app</a
>
url will not work from next week. Please use
<a href="https://beach-litriochta.pages.dev"
>https://beach-litriochta.pages.dev</a
>
instead. Sorry for the short notice!
</p>
</div>
Expand Down

0 comments on commit 048e03b

Please sign in to comment.