change name to cozy

This commit is contained in:
Ayo 2023-06-03 01:09:46 +02:00
parent 7f9905a00c
commit 3e95f853af
6 changed files with 17 additions and 17 deletions

View file

@ -14,13 +14,13 @@ This project is built with the following tech
1. Clone 1. Clone
``` ```
git clone https://github.com/ayoayco/cozy-reader.git git clone https://github.com/ayoayco/cozy.git
``` ```
2. install dependencies 2. install dependencies
``` ```
cd cozy-reader cd cozy
npm install npm install
``` ```
@ -32,7 +32,7 @@ npm start
## Good first issues ## Good first issues
Go to our [issues page](https://github.com/ayoayco/cozy-reader/issues) to watch out for issues we label as "good first issue" or "help wanted" Go to our [issues page](https://github.com/ayoayco/cozy/issues) to watch out for issues we label as "good first issue" or "help wanted"
## Code of Conduct ## Code of Conduct

View file

@ -1,7 +1,7 @@
<h1 align="center">Cozy Reader 🧸</h1> <h1 align="center">Cozy 🧸</h1>
<p align="center"> <p align="center">
<a href="https://github.com/ayoayco/cozy-reader"> <a href="https://github.com/ayoayco/cozy">
<img alt="Last Commit" src="https://img.shields.io/github/last-commit/ayoayco/cozy-reader?logo=github" /> <img alt="Last Commit" src="https://img.shields.io/github/last-commit/ayoayco/cozy?logo=github" />
</a><br /> </a><br />
Remove distractions. Save your favorites. Get useful insights.<br /> Remove distractions. Save your favorites. Get useful insights.<br />
Cozy is your modern-day reading assistant. Cozy is your modern-day reading assistant.
@ -20,21 +20,21 @@ Cozy is your modern-day reading assistant.
**1. Copy, Paste** **1. Copy, Paste**
It's simple. When you open an article and want to turn it into a more cozy reading experience, just copy the url and paste it to the [Cozy](https://cozy-reader.netlify.app/) address bar. It's simple. When you open an article and want to turn it into a more cozy reading experience, just copy the url and paste it to the [Cozy](https://cozy.netlify.app/) address bar.
**2. One-click Bookmark** **2. One-click Bookmark**
A bookmarklet could run a script to open the current page for you on Cozy. You can create this new bookmark titled 'Get cozy!' and put the following as value for the URL: A bookmarklet could run a script to open the current page for you on Cozy. You can create this new bookmark titled 'Get cozy!' and put the following as value for the URL:
``` ```
javascript:(function(){ window.open('https://cozy-reader.netlify.app/?url=%27 + window.location.href, %27_self%27); })(); javascript:(function(){ window.open('https://cozy.netlify.app/?url=%27 + window.location.href, %27_self%27); })();
``` ```
This is possible on all major browsers, including Safari on iOS (where I personally use this often). Some screenshots: This is possible on all major browsers, including Safari on iOS (where I personally use this often). Some screenshots:
| Firefox | Chrome | | Firefox | Chrome |
| --- | --- | | --- | --- |
| ![Screenshot from 2023-05-13 08-31-41](https://github.com/ayoayco/cozy-reader/assets/4262489/9b296d4f-2722-483a-bbc2-431c6b2ae996) | ![Screenshot from 2023-05-12 23-32-08](https://github.com/ayoayco/cozy-reader/assets/4262489/144b74f8-3949-46b9-849c-351e4af0ac12) | | ![Screenshot from 2023-05-13 08-31-41](https://github.com/ayoayco/cozy/assets/4262489/9b296d4f-2722-483a-bbc2-431c6b2ae996) | ![Screenshot from 2023-05-12 23-32-08](https://github.com/ayoayco/cozy/assets/4262489/144b74f8-3949-46b9-849c-351e4af0ac12) |
**3. One-click Extension then...** **3. One-click Extension then...**

10
package-lock.json generated
View file

@ -1,9 +1,11 @@
{ {
"name": "@ayoayco/cozy-reader", "name": "@ayoayco/cozy",
"version": "0.0.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.0.1",
"dependencies": { "dependencies": {
"@astro-reactive/form": "^0.8.1", "@astro-reactive/form": "^0.8.1",
"@astro-reactive/validator": "^0.3.4", "@astro-reactive/validator": "^0.3.4",
@ -12,8 +14,7 @@
}, },
"devDependencies": { "devDependencies": {
"astro": "^2.4.4" "astro": "^2.4.4"
}, }
"version": "0.0.1"
}, },
"node_modules/@ampproject/remapping": { "node_modules/@ampproject/remapping": {
"version": "2.2.1", "version": "2.2.1",
@ -9714,6 +9715,5 @@
"resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",
"integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==" "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="
} }
}, }
"version": "0.0.1"
} }

View file

@ -27,7 +27,7 @@ const form = new FormGroup([
value: "Get cozy!", value: "Get cozy!",
}} }}
/> />
<a class="repo-link" href="https://github.com/ayoayco/cozy-reader" <a class="repo-link" href="https://github.com/ayoayco/cozy"
>Star on GitHub</a >Star on GitHub</a
> >
</div> </div>

View file

@ -3,7 +3,7 @@ import "./reset.css";
export interface Props { export interface Props {
title?: string; title?: string;
} }
const appTitle = "Cozy Reader"; const appTitle = "Cozy 🧸";
const { title = "" } = Astro.props; const { title = "" } = Astro.props;
--- ---

View file

@ -6,7 +6,7 @@ import Post from "../components/post.astro";
import Layout from "../layouts/layout.astro"; import Layout from "../layouts/layout.astro";
// temporary default content while we don't have any good thing to put yet :) // temporary default content while we don't have any good thing to put yet :)
const defaultUrl = "https://github.com/ayoayco/cozy-reader"; const defaultUrl = "https://github.com/ayoayco/cozy";
const params = getParams(Astro.url); const params = getParams(Astro.url);
const url = params?.url || defaultUrl; const url = params?.url || defaultUrl;
let article; let article;