Skip to content

Commit

Permalink
chore: add license header (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba authored Nov 21, 2024
1 parent af449fd commit 0fedce9
Show file tree
Hide file tree
Showing 94 changed files with 598 additions and 21 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/check-on-pr.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) 2023 Anass Bouassaba.
#
# This software is licensed under the MIT License.
# You can find a copy of the license in the LICENSE file
# included in the root of this repository or at
# https://opensource.org/licenses/MIT.

name: Lint and Build

on:
Expand Down
6 changes: 6 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import type { StorybookConfig } from '@storybook/react-vite'
import autoprefixer from 'autoprefixer'
import path from 'path'
Expand Down
6 changes: 6 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ChakraProvider } from '@chakra-ui/react'
import { theme } from '@koupr/ui'
import type { Preview } from '@storybook/react'
Expand Down
8 changes: 8 additions & 0 deletions .storybook/storybook.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) 2023 Anass Bouassaba.
This software is licensed under the MIT License.
You can find a copy of the license in the LICENSE file
included in the root of this repository or at
https://opensource.org/licenses/MIT.
*/

html,
body,
#storybook-root {
Expand Down
23 changes: 23 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
The MIT License (MIT)

Copyright (c) 2023 Anass Bouassaba.

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 0 additions & 21 deletions LICENSE.md

This file was deleted.

7 changes: 7 additions & 0 deletions src/common-types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.

export type StorageOptions = {
prefix?: string
namespace?: string
Expand Down
6 changes: 6 additions & 0 deletions src/components/account-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ReactElement, ReactNode } from 'react'
import {
Avatar,
Expand Down
6 changes: 6 additions & 0 deletions src/components/app-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ReactElement } from 'react'
import cx from 'classnames'

Expand Down
6 changes: 6 additions & 0 deletions src/components/auxiliary-drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ReactElement, useRef } from 'react'
import {
Drawer,
Expand Down
6 changes: 6 additions & 0 deletions src/components/data-table.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ReactElement } from 'react'
import {
IconButton,
Expand Down
6 changes: 6 additions & 0 deletions src/components/form.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { Fragment, ReactElement } from 'react'
import { Divider, Spacer } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
6 changes: 6 additions & 0 deletions src/components/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { CSSProperties, HTMLAttributes } from 'react'
import { cx } from '@emotion/css'

Expand Down
7 changes: 7 additions & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.

export * from './sidenav'
export * from './icons'
export * from './spinner'
Expand Down
7 changes: 7 additions & 0 deletions src/components/logo/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.

export * from './logo'
6 changes: 6 additions & 0 deletions src/components/logo/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { useCallback } from 'react'
import { CenterProps, useColorMode } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
6 changes: 6 additions & 0 deletions src/components/nav-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { useEffect, useState } from 'react'
import { Link as ChakraLink } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
6 changes: 6 additions & 0 deletions src/components/notification-badge.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ReactNode } from 'react'
import { Circle } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
6 changes: 6 additions & 0 deletions src/components/number-tag.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ReactNode, useMemo } from 'react'
import { Tag, useColorMode } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
6 changes: 6 additions & 0 deletions src/components/page-pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import React, { ChangeEvent, useCallback } from 'react'
import { Select } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
6 changes: 6 additions & 0 deletions src/components/pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { useCallback, useMemo } from 'react'
import {
ButtonGroup,
Expand Down
6 changes: 6 additions & 0 deletions src/components/relative-date.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { Tooltip } from '@chakra-ui/react'
import { prettyDate, relativeDate } from '../helpers'

Expand Down
6 changes: 6 additions & 0 deletions src/components/search-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import {
ChangeEvent,
KeyboardEvent,
Expand Down
6 changes: 6 additions & 0 deletions src/components/search-input.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import {
useCallback,
useEffect,
Expand Down
6 changes: 6 additions & 0 deletions src/components/section-error.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import cx from 'classnames'
import { IconError } from './icons'

Expand Down
6 changes: 6 additions & 0 deletions src/components/section-placeholder.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ReactElement } from 'react'
import cx from 'classnames'

Expand Down
6 changes: 6 additions & 0 deletions src/components/section-spinner.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import cx from 'classnames'
import { Spinner } from './spinner'

Expand Down
6 changes: 6 additions & 0 deletions src/components/select.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ComponentProps, useMemo } from 'react'
import { SystemStyleObject, useColorMode } from '@chakra-ui/react'
import {
Expand Down
6 changes: 6 additions & 0 deletions src/components/shell.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { MouseEvent, ReactElement } from 'react'
import cx from 'classnames'
import { StorageOptions } from '../common-types'
Expand Down
7 changes: 7 additions & 0 deletions src/components/sidenav/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.

export * from './sidenav'
export * from './sidenav-item'
export * from './sidenav-context'
6 changes: 6 additions & 0 deletions src/components/sidenav/sidenav-context.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { createContext } from 'react'

export type SidenavContextType = {
Expand Down
6 changes: 6 additions & 0 deletions src/components/sidenav/sidenav-item.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ReactElement, useContext, useEffect, useState } from 'react'
import { Tooltip, Link } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
6 changes: 6 additions & 0 deletions src/components/sidenav/sidenav.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { ReactNode, useEffect, useMemo, useState } from 'react'
import { Link } from '@chakra-ui/react'
import cx from 'classnames'
Expand Down
6 changes: 6 additions & 0 deletions src/components/spinner.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import { Spinner as ChakraSpinner } from '@chakra-ui/react'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
6 changes: 6 additions & 0 deletions src/components/switch-card.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import {
ChangeEvent,
ReactElement,
Expand Down
6 changes: 6 additions & 0 deletions src/components/text.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2023 Anass Bouassaba.
//
// This software is licensed under the MIT License.
// You can find a copy of the license in the LICENSE file
// included in the root of this repository or at
// https://opensource.org/licenses/MIT.
import React, { ReactNode, useEffect, useRef } from 'react'
import cx from 'classnames'

Expand Down
Loading

0 comments on commit 0fedce9

Please sign in to comment.