Skip to content

Commit

Permalink
DN-6: revise content (#31)
Browse files Browse the repository at this point in the history
* DN-5: Version bump.

* DN-5: Remove leading / from post slug in db allows to use get request to get comments on front end with out encoding.

* DN-5: Correct API url.

* DN-6: V2.

* DN-6: V3.

* DN-6: Still a work in progress consciousness article.

* DN-6: Better and with citations.

* DN-6: Mode details and information on linux keychain.

* DN-6: Better commands and formatting.

* DN-6: A slightly longer explanation and citations.

* DN-6: Publishing curriculum and reformatting.

* DN-6: Reformatting.

* DN-6: Cleanup formatting.

* DN-6: Spelling.

* DN-6: Programming securely v2.

* DN-6: Syn bio revised and citations.

* DN-6: More on art.

* DN-6: Allow for fixing width and height.

* DN-6: Added canvas component.

* DN-6: V1.

* DN-6: Added more demos.

* DN-6: More demos.

* DN-6: Explanations.

* DN-6: Centre putain de merde!

* DN-6: Pas besoin de la conclusion.

* DN-6: Solved the geometry puzzle.

* DN-6: Engineering microbes course draft.

* DN-6: Deprecated.

* DN-6: Draft of stats course.

* DN-6: Draft rebuild.

* DN-6: Fixed how paths for posts passed to cards are put together.

* DN-6: Using catch all route for allowing sub directories.

* DN-6: Using catch all route for allowing sub directories.

* DN-6: Using catch all routes.

* DN-6: Not published.

* DN-6: Not published.

* DN-6: First draft of intro stats.

* DN-6: Build the link by joining parts.

* DN-6: First revision.

* DN-6: TOC v2.

* DN-6: Hyphens.

* DN-6: Don't log.

* DN-6: Need to rework references and links etc.

* DN-6: Links in text.

* DN-6: TOC.

* DN-6: Casing.

* DN-6: Fix bad CSS footnotes.

* DN-6: A little more space.

* DN-6: /Users/work/Coding/derecksprojects/derecksnotes.com-playground/derecksnotes.com/client/src/app/courses/posts/introduction-to-statistics-with-R/1_introduction-to-statistics-with-R_preface-and-orientation.mdx

* DN-6: Table of contents.

* DN-6: Revised stats course and including datasets.

* DN-6: Added likes badge to cards.!

* DN-6: Added likes badge to cards.!

* DN-6: Using subtitle instead.

* DN-6: Side entry link and div elements.

* DN-6: Reworked how sidebar is rendered; now handles series groups the posts into sets first then renders each set in the order they were received.

* DN-6: Renamed function that gets the posts from a section; it now filters to only get the top level posts and exclude the series.

* DN-6: Renamed function that gets the posts from a section; it now filters to only get the top level posts and exclude the series.

* DN-6: Two different functions now one for getting section one for getting side bar information.

* DN-6: Sidebar now only shows related words definitions.

* DN-6: Prototype to rewrite jump links to hyper links.

* DN-6: Showing maths dictionary.

* DN-6: First draft of machine learning maths.

* DN-6: First draft of maths definitions.

* DN-6: First draft of build script.

* DN-6: Maths section.

* DN-6: New chemistry defs draft 1.

* DN-6: Better build script.

* DN-6: Built mdx files maths.

* DN-6: Throw better error.

* DN-6: Fixed dollar signs maths.

* DN-6: Fixed dollar signs.

* DN-6: Fixed dollar signs again.

* DN-6: Fixed inline dollar sign.

* DN-6: Fixed paths to images.

* DN-6: Remove console.

* DN-6: Syntax caused build error.

* DN-6: Syntax caused build error.

* DN-6: client/src/app/courses/

* DN-6: Fixed conflicting page props.

* DN-6: Reverted to old code while trying to diagnose upgrade errors.

* DN-6: Updated nextjs application to new next 15.

* DN-6: Updated nextjs application to new next 15.

* DN-6: Hydration error sonner must be inside body.

* DN-6: Fix mdx parsing errors.

* DN-6: Type error.

* DN-6: Fixed updated types for next v15.

* DN-6: Correctly build the post paths.

* DN-6: Revised and improved.

* DN-6: Original date.

* DN-6: Revised and improved.

* DN-6: Revised expanded and renewed.

* DN-6: Expanded.

* DN-6: Watson.

* DN-6: Watson.

* DN-6: Albert einstein article v1.

* DN-6: Quotes.

* DN-6: Galileo.

* DN-6: Apostrophes.

* DN-6: First review.

* DN-6: Fixed images

* DN-6: Cover image.

* DN-6: Industrial colours themes.
  • Loading branch information
dereckmezquita authored Dec 28, 2024
1 parent 04245b3 commit cbae0a2
Show file tree
Hide file tree
Showing 693 changed files with 42,520 additions and 4,259 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Create .env file
run: |
echo BUILD_ENV=DEV > ./server/.env
echo API_URL=https://dev.derecksnotes.com/ >> ./server/.env
echo API_URL=https://dev.derecksnotes.com/api >> ./server/.env
echo SESSION_SECRET=${{ secrets.SESSION_SECRET }} >> ./server/.env
echo MONGO_PASSWORD=${{ secrets.MONGO_PASSWORD }} >> ./server/.env
echo MONGO_DATABASE=dev_derecksnotes >> ./server/.env
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
run: |
echo NEXT_PUBLIC_BUILD_ENV=DEV > ./client/.env
echo NEXT_PUBLIC_APP_URL=https://dev.derecksnotes.com/ >> ./client/.env
echo NEXT_PUBLIC_API_URL=https://dev.derecksnotes.com/ >> ./client/.env
echo NEXT_PUBLIC_API_URL=https://dev.derecksnotes.com/api >> ./client/.env
- name: Build and push client image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
Expand Down
3 changes: 0 additions & 3 deletions client/.eslintrc.json

This file was deleted.

13 changes: 9 additions & 4 deletions client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage
Expand All @@ -24,9 +28,10 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel
Expand Down
8 changes: 4 additions & 4 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started

Expand All @@ -18,7 +18,7 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

Expand All @@ -27,10 +27,10 @@ To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
40 changes: 40 additions & 0 deletions client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { dirname } from 'path';
import { fileURLToPath } from 'url';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname
});

// Pull in Next.js + TypeScript recommended rules:
const nextAndTsConfigs = compat.extends(
'next/core-web-vitals',
'next/typescript'
);

/**
* We can push additional "flat config" objects that override or disable rules.
*/
const overrides = [
{
files: ['**/*.{ts,tsx,js,jsx}'],
rules: {
// Turn off or relax the rules that are blocking your build:
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars-experimental': 'off', // if present
'prefer-const': 'off',
'@typescript-eslint/ban-types': 'off', // sometimes is also triggered
'@next/next/no-img-element': 'warn' // or 'off' if you want to allow <img>
}
}
];

// Combine the Next + TS config with our overrides:
const eslintConfig = [...nextAndTsConfigs, ...overrides];

export default eslintConfig;
4 changes: 2 additions & 2 deletions client/next.config.mjs → client/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/** @type {import('next').NextConfig} */
import type { NextConfig } from 'next';

const API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3001';

console.log(`Proxying API requests to ${API_URL}`);

const nextConfig = {
const nextConfig: NextConfig = {
// output: 'export',
// images: {
// unoptimized: true,
Expand Down
Loading

0 comments on commit cbae0a2

Please sign in to comment.