Skip to content

Commit

Permalink
Merge pull request #1420 from coingaming/develop
Browse files Browse the repository at this point in the history
release
  • Loading branch information
karl-kallavus authored Oct 6, 2021
2 parents 06d434c + c45c16f commit 12a84a3
Show file tree
Hide file tree
Showing 54 changed files with 427 additions and 230 deletions.
33 changes: 6 additions & 27 deletions .config/docker/docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,23 @@ FROM node:16.5-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY next-docs ./
COPY ./ ./
RUN npm install -g pnpm@latest
RUN pnpm i --ignore-scripts --prod
RUN pnpm i --ignore-scripts

# Rebuild the source code only when needed
FROM node:16.5-alpine AS builder
WORKDIR /app
COPY --from=deps /app/ .
ENV NODE_ENV production
RUN npm install -g pnpm
RUN pnpm run build

ENV NODE_ENV production
RUN pnpm run build
RUN pnpm run next build

# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry.
ENV NEXT_TELEMETRY_DISABLED 1
CMD ["pnpm", "run", "start"]

# Production image, copy all the files and run next
# FROM node:16.5-alpine AS runner
# WORKDIR /app

# ENV NODE_ENV production

# RUN addgroup -g 1001 -S nodejs
# RUN adduser -S nextjs -u 1001

# You only need to copy next.config.js if you are NOT using the default configuration
# COPY --from=builder /app/next.config.js ./
# COPY --from=builder /app/public ./public
# COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
# COPY --from=builder /app/node_modules ./node_modules
# COPY --from=builder /app/package.json ./package.json

# USER nextjs


# ENV NEXT_TELEMETRY_DISABLED 1

# CMD ["yarn", "start"]
CMD ["pnpm", "run", "next", "start"]
22 changes: 22 additions & 0 deletions next-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Change Log

## 7.5.0

### Minor Changes

- Fix shadows & colors

### Patch Changes

- Updated dependencies [undefined]
- @heathmont/moon-accordion@7.5.0
- @heathmont/moon-assets@7.5.0
- @heathmont/moon-charts@7.5.0
- @heathmont/moon-components@7.5.0
- @heathmont/moon-core@7.5.0
- @heathmont/moon-draggabletable@7.5.0
- @heathmont/moon-icons@7.5.0
- @heathmont/moon-pagination@7.5.0
- @heathmont/moon-popover@7.5.0
- @heathmont/moon-table@7.5.0
- @heathmont/moon-themes@7.5.0
- @heathmont/moon-utils@7.5.0

## 7.4.0

### Minor Changes
Expand Down
6 changes: 1 addition & 5 deletions next-docs/components/sidebar/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const navigation = [
children: [
{ name: 'Accordion', href: '/components/accordion' },
{ name: 'Avatar', href: '/components/avatar' },
{ name: 'Badge', href: '/components/badge' },
{ name: 'Button', href: '/components/button' },
{ name: 'Carousel', href: '/components/carousel' },
{
Expand Down Expand Up @@ -80,10 +79,7 @@ const navigation = [
},
{ name: 'Switch', href: '/components/switch' },
{ name: 'Tabs', href: '/components/tabs' },
{
name: 'Table',
children: [{ name: 'Table', href: '/components/table/table' }],
},
{ name: 'Table', href: '/components/table/table' },
{ name: 'TextInput', href: '/components/textInput' },
{ name: 'Tooltip', href: '/components/tooltip' },
],
Expand Down
26 changes: 13 additions & 13 deletions next-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-docs",
"version": "7.4.0",
"version": "7.5.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,18 +9,18 @@
},
"dependencies": {
"@headlessui/react": "1.2.0",
"@heathmont/moon-accordion": "^7.4.0",
"@heathmont/moon-assets": "^7.4.0",
"@heathmont/moon-charts": "^7.4.0",
"@heathmont/moon-components": "^7.4.0",
"@heathmont/moon-core": "^7.4.0",
"@heathmont/moon-draggabletable": "^7.4.0",
"@heathmont/moon-icons": "^7.4.0",
"@heathmont/moon-pagination": "^7.4.0",
"@heathmont/moon-popover": "^7.4.0",
"@heathmont/moon-table": "^7.4.0",
"@heathmont/moon-themes": "^7.4.0",
"@heathmont/moon-utils": "^7.4.0",
"@heathmont/moon-accordion": "workspace:^7.5.0",
"@heathmont/moon-assets": "workspace:^7.5.0",
"@heathmont/moon-charts": "workspace:^7.5.0",
"@heathmont/moon-components": "workspace:^7.5.0",
"@heathmont/moon-core": "workspace:^7.5.0",
"@heathmont/moon-draggabletable": "workspace:^7.5.0",
"@heathmont/moon-icons": "workspace:^7.5.0",
"@heathmont/moon-pagination": "workspace:^7.5.0",
"@heathmont/moon-popover": "workspace:^7.5.0",
"@heathmont/moon-table": "workspace:^7.5.0",
"@heathmont/moon-themes": "workspace:^7.5.0",
"@heathmont/moon-utils": "workspace:^7.5.0",
"@types/react": "16.9.9",
"@types/styled-components": "5.1.7",
"autoprefixer": "10.2.5",
Expand Down
4 changes: 2 additions & 2 deletions next-docs/pages/components/table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const DefaultTablePreview = () => {
},
];

const makeData = (length) => {
const makeData = (length: number) => {
return Array.from('_'.repeat(length)).map(() => {
return {
firstName: 'Test',
Expand Down Expand Up @@ -186,7 +186,7 @@ const ExpandedRowTablePreview = () => {
},
];

const makeData = (length) => {
const makeData = (length: number) => {
return Array.from('_'.repeat(length)).map(() => {
return {
firstName: 'Test',
Expand Down
6 changes: 0 additions & 6 deletions next-docs/pages/components/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ const PreviewTooltip = () => {
<Tooltip>
<Text size={14}>Text with font size 14</Text>
</Tooltip>
<Tooltip position="bottom">
<Text size={14}>Bottom</Text>
</Tooltip>
</div>
}
code={`import { Tooltip, Text } from '@heathmont/moon-core';
Expand All @@ -24,9 +21,6 @@ const PreviewTooltip = () => {
<Text size={14}>Text with font size 14</Text>
</Tooltip>
<Tooltip position="bottom">
<Text size={14}>Bottom</Text>
</Tooltip>
`}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion next-docs/pages/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ const Icon: React.FC<{ name: string; onClick: any; selectedIcons: string[] }> =
onClick={() => onClick(name)}
className={classNames(
isShown ? 'text-active bg-active-80' : 'text-gray-400',
'relative flex flex-col items-center text-sm cursor-pointer rounded-md'
'relative flex flex-col items-center text-sm cursor-pointer rounded-md hover:bg-active-80 hover:text-active'
)}
>
{children}
Expand Down
14 changes: 14 additions & 0 deletions packages/accordion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change Log

## 7.5.0

### Minor Changes

- Fix shadows & colors

### Patch Changes

- Updated dependencies [undefined]
- @heathmont/moon-components@7.5.0
- @heathmont/moon-icons@7.5.0
- @heathmont/moon-themes@7.5.0
- @heathmont/moon-utils@7.5.0

## 7.4.0

### Minor Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/accordion/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-accordion",
"sideEffects": false,
"version": "7.4.0",
"version": "7.5.0",
"files": [
"lib"
],
Expand All @@ -21,10 +21,10 @@
"chokidar": "chokidar \"**/*.tsx\" \"**/*.ts\" -i \"lib/**/*.d.ts\" -c \"pnpm run build:code\" "
},
"dependencies": {
"@heathmont/moon-components": "workspace:^7.4.0",
"@heathmont/moon-icons": "workspace:^7.4.0",
"@heathmont/moon-themes": "workspace:^7.4.0",
"@heathmont/moon-utils": "workspace:^7.4.0"
"@heathmont/moon-components": "workspace:^7.5.0",
"@heathmont/moon-icons": "workspace:^7.5.0",
"@heathmont/moon-themes": "workspace:^7.5.0",
"@heathmont/moon-utils": "workspace:^7.5.0"
},
"peerDependencies": {
"react": ">= 16.10.2",
Expand Down
12 changes: 12 additions & 0 deletions packages/assets/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## 7.5.0

### Minor Changes

- Fix shadows & colors

### Patch Changes

- Updated dependencies [undefined]
- @heathmont/moon-themes@7.5.0
- @heathmont/moon-utils@7.5.0

## 7.4.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/assets/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-assets",
"sideEffects": false,
"version": "7.4.0",
"version": "7.5.0",
"files": [
"lib"
],
Expand Down Expand Up @@ -37,8 +37,8 @@
"chokidar": "chokidar \"**/*.tsx\" \"**/*.ts\" -i \"lib/**/*.d.ts\" -c \"pnpm run build:code\" "
},
"dependencies": {
"@heathmont/moon-themes": "workspace:^7.4.0",
"@heathmont/moon-utils": "workspace:^7.4.0"
"@heathmont/moon-themes": "workspace:^7.5.0",
"@heathmont/moon-utils": "workspace:^7.5.0"
},
"peerDependencies": {
"react": ">= 16.10.2",
Expand Down
13 changes: 13 additions & 0 deletions packages/calendar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## 7.5.0

### Minor Changes

- Fix shadows & colors

### Patch Changes

- Updated dependencies [undefined]
- @heathmont/moon-components@7.5.0
- @heathmont/moon-themes@7.5.0
- @heathmont/moon-utils@7.5.0

## 7.4.0

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/calendar/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-calendar",
"sideEffects": false,
"version": "7.4.0",
"version": "7.5.0",
"files": [
"lib"
],
Expand All @@ -21,9 +21,9 @@
"chokidar": "chokidar \"**/*.tsx\" \"**/*.ts\" -i \"lib/**/*.d.ts\" -c \"pnpm run build:code\" "
},
"dependencies": {
"@heathmont/moon-components": "workspace:^7.4.0",
"@heathmont/moon-themes": "workspace:^7.4.0",
"@heathmont/moon-utils": "workspace:^7.4.0",
"@heathmont/moon-components": "workspace:^7.5.0",
"@heathmont/moon-themes": "workspace:^7.5.0",
"@heathmont/moon-utils": "workspace:^7.5.0",
"@types/date-fns": "2.6.0",
"date-fns": "2.15.0"
},
Expand Down
14 changes: 14 additions & 0 deletions packages/charts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change Log

## 7.5.0

### Minor Changes

- Fix shadows & colors

### Patch Changes

- Updated dependencies [undefined]
- @heathmont/moon-assets@7.5.0
- @heathmont/moon-components@7.5.0
- @heathmont/moon-themes@7.5.0
- @heathmont/moon-utils@7.5.0

## 7.4.0

### Minor Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/charts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-charts",
"sideEffects": false,
"version": "7.4.0",
"version": "7.5.0",
"files": [
"lib"
],
Expand All @@ -21,10 +21,10 @@
"chokidar": "chokidar \"**/*.tsx\" \"**/*.ts\" -i \"lib/**/*.d.ts\" -c \"pnpm run build:code\" "
},
"dependencies": {
"@heathmont/moon-assets": "workspace:^7.4.0",
"@heathmont/moon-components": "workspace:^7.4.0",
"@heathmont/moon-themes": "workspace:^7.4.0",
"@heathmont/moon-utils": "workspace:^7.4.0",
"@heathmont/moon-assets": "workspace:^7.5.0",
"@heathmont/moon-components": "workspace:^7.5.0",
"@heathmont/moon-themes": "workspace:^7.5.0",
"@heathmont/moon-utils": "workspace:^7.5.0",
"@types/react-simple-maps": "1.0.3",
"@types/react-transition-group": "4.4.0",
"react-simple-maps": "2.3.0",
Expand Down
13 changes: 13 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## 7.5.0

### Minor Changes

- Fix shadows & colors

### Patch Changes

- Updated dependencies [undefined]
- @heathmont/moon-assets@7.5.0
- @heathmont/moon-themes@7.5.0
- @heathmont/moon-utils@7.5.0

## 7.4.0

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-components",
"sideEffects": false,
"version": "7.4.0",
"version": "7.5.0",
"files": [
"lib"
],
Expand All @@ -21,9 +21,9 @@
"chokidar": "chokidar \"**/*.tsx\" \"**/*.ts\" -i \"lib/**/*.d.ts\" -c \"pnpm run build:code\" "
},
"dependencies": {
"@heathmont/moon-assets": "workspace:^7.4.0",
"@heathmont/moon-themes": "workspace:^7.4.0",
"@heathmont/moon-utils": "workspace:^7.4.0",
"@heathmont/moon-assets": "workspace:^7.5.0",
"@heathmont/moon-themes": "workspace:^7.5.0",
"@heathmont/moon-utils": "workspace:^7.5.0",
"@reach/dialog": "0.11.2",
"@types/date-fns": "2.6.0",
"date-fns": "2.15.0",
Expand Down
Loading

0 comments on commit 12a84a3

Please sign in to comment.