Skip to content

Commit

Permalink
Codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaMulein committed Sep 20, 2024
1 parent 5fc352b commit c2f61e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion apps/duality-social-node/src/controllers/api/feed.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { AppConstants, HumanityTypeEnum, IPost, IPostViewpoint, IRole, IRoleDocu

import { Types } from 'mongoose';
import { RequestUserService } from '../../services/request-user.ts';
import { Readable } from 'stream';

jest.mock('image-size');

Expand Down Expand Up @@ -517,7 +518,7 @@ describe('FeedController - newPost', () => {
filename: 'test-1234567890.jpg',
path: '/tmp/test-1234567890.jpg',
buffer: Buffer.from('mock image data'),
stream: {} as any,
stream: {} as Readable,
};

(sizeOf as jest.Mock).mockReturnValue({ width: AppConstants.MaxImageDimensions.width, height: AppConstants.MaxImageDimensions.height });
Expand Down
19 changes: 10 additions & 9 deletions docs/post-markup.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@

## Icon Markup:
## Icon Markup

- Basic Icon: `{{heart}}` renders as a regular heart icon
- Styled Icon: `{{solid heart}}` renders as a solid heart icon

### Available Styles:
### Available Styles
classic, duotone, light, regular, solid, thin, brands, sharp solid

### Sizes:
### Sizes
xs, sm, lg, xl, 2xl, 1x, 2x, 3x, 4x, 5x, 6x, 7x, 8x, 9x, 10x

Size Example: `{{solid heart lg}}` renders a large solid heart icon

### Animations:
### Animations
spin, spin-pulse, spin-reverse, pulse, beat, fade, beat-fade, flip, flip-both, flip-horizontal, flip-vertical, rotate-90, rotate-180, rotate-270, rotate-by

Animation Example: `{{solid heart spin}}` renders a spinning solid heart icon

### Combined Usage:
### Combined Usage
`{{solid heart lg spin}}` renders a large, spinning, solid heart icon

### Custom Styled Icon:
### Custom Styled Icon
`{{solid heart; color: red; font-size: 20px;}}` renders as a red, 20px solid heart icon. CSS styles are added after a semicolon.

### Custom Style Order:
### Custom Style Order
When using icons, follow this order:

1. Icon style (optional, e.g., solid, regular)
2. Icon name (required, e.g., heart)
3. Additional properties (optional, e.g., lg, spin)
Expand All @@ -40,15 +41,15 @@ Examples:

Remember: Only the icon name is required. All other elements are optional.

## Character Counting:
## Character Counting

- Emoji: Each emoji counts as 1 character
- Unicode Characters: Each Unicode character counts as 1 character
- Icon Markup: Valid icon markup (e.g., {{heart}}) counts as 1 character
- Newlines: Each newline (CR/LF) counts as 1 character
- Links: Each link counts as 1 character, plus the visible text

## Blog Post Formatting:
## Blog Post Formatting

Blog posts support full Markdown syntax in addition to the custom icon markup. This includes:

Expand Down

0 comments on commit c2f61e1

Please sign in to comment.