Skip to content

Commit

Permalink
Changed -1 to undefined on max chars
Browse files Browse the repository at this point in the history
  • Loading branch information
aneillans committed Dec 13, 2023
1 parent d53c745 commit 82707cf
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion electron-app/src/server/websites/aryion/aryion.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { Website } from '../website.base';
@Injectable()
export class Aryion extends Website {
readonly BASE_URL = 'https://aryion.com';
readonly MAX_CHARS: number = -1; // No limit
readonly MAX_CHARS: number = undefined; // No limit
readonly defaultDescriptionParser = BBCodeParser.parse;
readonly usernameShortcuts = [
{
Expand Down
2 changes: 1 addition & 1 deletion electron-app/src/server/websites/custom/custom.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { Website } from '../website.base';
@Injectable()
export class Custom extends Website {
readonly BASE_URL: string = '';
readonly MAX_CHARS: number = -1; // No limit
readonly MAX_CHARS: number = undefined; // No limit
readonly acceptsFiles: string[] = []; // accepts all
readonly acceptsAdditionalFiles: boolean = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface DeviantArtFolder {
@Injectable()
export class DeviantArt extends Website {
readonly BASE_URL = 'https://www.deviantart.com';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles = [
'jpeg',
'jpg',
Expand Down
2 changes: 1 addition & 1 deletion electron-app/src/server/websites/e621/e621.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { Website } from '../website.base';
@Injectable()
export class e621 extends Website {
readonly BASE_URL: string = 'https://e621.net';
readonly MAX_CHARS: number = -1; // No limit
readonly MAX_CHARS: number = undefined; // No limit
readonly acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'gif', 'webm'];
readonly acceptsSourceUrls: boolean = true;
readonly defaultDescriptionParser = PlaintextParser.parse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import _ from 'lodash';
export class FurAffinity extends Website {
readonly BASE_URL = 'https://www.furaffinity.net';
readonly waitBetweenPostsInterval = 70000;
readonly MAX_CHARS: number = -1; // No limit
readonly MAX_CHARS: number = undefined; // No limit
readonly defaultDescriptionParser = BBCodeParser.parse;
readonly usernameShortcuts = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { Website } from '../website.base';
@Injectable()
export class Furbooru extends Website {
BASE_URL: string = 'https://furbooru.org';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'svg', 'gif', 'webm'];
acceptsSourceUrls: boolean = true;
enableAdvertisement: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import _ from 'lodash';
@Injectable()
export class FurryNetwork extends Website {
readonly BASE_URL: string = 'https://furrynetwork.com';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly refreshBeforePost: boolean = true;
readonly acceptsFiles: string[] = [
'png',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { MarkdownParser } from 'src/server/description-parsing/markdown/markdown
@Injectable()
export class Furtastic extends Website {
readonly BASE_URL: string = 'https://api.furtastic.art';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'gif', 'webm', 'pdf'];
readonly defaultDescriptionParser = MarkdownParser.parse;
readonly enableAdvertisement: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import _ from 'lodash';
@Injectable()
export class HentaiFoundry extends Website {
readonly BASE_URL = 'https://www.hentai-foundry.com';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles = ['jpeg', 'jpg', 'png', 'svg', 'gif'];
readonly defaultDescriptionParser = BBCodeParser.parse;
readonly usernameShortcuts = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { InkbunnyAccountData } from './inkbunny-account.interface';
@Injectable()
export class Inkbunny extends Website {
readonly BASE_URL: string = 'https://inkbunny.net';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles: string[] = [
'png',
'jpeg',
Expand Down
2 changes: 1 addition & 1 deletion electron-app/src/server/websites/ko-fi/ko-fi.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import _ from 'lodash';
@Injectable()
export class KoFi extends Website {
readonly BASE_URL: string = 'https://ko-fi.com';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'gif'];
readonly acceptsAdditionalFiles: boolean = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { Website } from '../website.base';
@Injectable()
export class Manebooru extends Website {
BASE_URL: string = 'https://manebooru.art';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'svg', 'gif', 'webm'];
acceptsSourceUrls: boolean = true;
enableAdvertisement: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type NewgroundsPostResponse = {
export class Newgrounds extends Website {
readonly BASE_URL: string = 'https://www.newgrounds.com';
readonly acceptsFiles = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly usernameShortcuts = [
{
key: 'ng',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import Http from 'src/server/http/http.util';
export class Patreon extends Website {
readonly BASE_URL = 'https://www.patreon.com';
readonly acceptsAdditionalFiles = true;
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly refreshBeforePost: boolean = true;
readonly waitBetweenPostsInterval = 90_000;
readonly enableAdvertisement: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { Website } from '../website.base';
export class Picarto extends Website {
BASE_URL: string = 'https://picarto.tv';
acceptsFiles: string[] = ['jpeg', 'jpg', 'png', 'gif'];
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
acceptsAdditionalFiles: boolean = true;
refreshBeforePost: boolean = true;
readonly defaultDescriptionParser = PlaintextParser.parse;
Expand Down
2 changes: 1 addition & 1 deletion electron-app/src/server/websites/piczel/piczel.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { ScalingOptions } from '../interfaces/scaling-options.interface';
@Injectable()
export class Piczel extends Website {
readonly BASE_URL: string = 'https://piczel.tv';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles: string[] = ['png', 'jpeg', 'jpg', 'gif'];
readonly acceptsAdditionalFiles: boolean = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { Website } from '../website.base';
export class Pillowfort extends Website {
readonly BASE_URL = 'https://www.pillowfort.social';
readonly acceptsAdditionalFiles = true;
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles = ['png', 'jpeg', 'jpg', 'gif'];
readonly usernameShortcuts = [
{
Expand Down
2 changes: 1 addition & 1 deletion electron-app/src/server/websites/pixiv/pixiv.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { Website } from '../website.base';
@Injectable()
export class Pixiv extends Website {
readonly BASE_URL = 'https://www.pixiv.net';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles = ['png', 'jpeg', 'jpg', 'gif'];
readonly waitBetweenPostsInterval = 60_000 * 5;
readonly defaultDescriptionParser = PlaintextParser.parse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import BrowserWindowUtil from 'src/server/utils/browser-window.util';
@Injectable()
export class SoFurry extends Website {
readonly BASE_URL: string = 'https://www.sofurry.com';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles: string[] = ['png', 'jpeg', 'jpg', 'gif', 'swf', 'txt', 'mp3', 'mp4'];
readonly usernameShortcuts = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import _ from 'lodash';
export class SubscribeStarAdult extends Website {
readonly BASE_URL = 'https://www.subscribestar.adult';
readonly acceptsAdditionalFiles = true;
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly enableAdvertisement: boolean = false;
readonly usernameShortcuts = [
// {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class SubscribeStar extends Website {
readonly BASE_URL = 'https://www.subscribestar.com';
readonly acceptsAdditionalFiles = true;
readonly enableAdvertisement: boolean = false;
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly usernameShortcuts = [
{
key: 'ss',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import _ = require('lodash');
export class Telegram extends Website {
readonly BASE_URL: string;
readonly acceptsFiles: string[] = [];
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
private readonly instances: Record<string, MTProto> = {};
private authData: Record<string, { phone_code_hash: string; phone_number: string }> = {};
public acceptsAdditionalFiles = true;
Expand Down
2 changes: 1 addition & 1 deletion electron-app/src/server/websites/tumblr/tumblr.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Tumblr extends Website {
readonly acceptsFiles = ['png', 'jpeg', 'jpg', 'gif', 'mp3', 'mp4'];
readonly acceptsAdditionalFiles = true;
readonly refreshInterval = 45 * 60000;
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly usernameShortcuts = [
{
key: 'tu',
Expand Down
2 changes: 1 addition & 1 deletion electron-app/src/server/websites/weasyl/weasyl.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { ScalingOptions } from '../interfaces/scaling-options.interface';
@Injectable()
export class Weasyl extends Website {
readonly BASE_URL: string = 'https://www.weasyl.com';
readonly MAX_CHARS: number = -1; // No Limit
readonly MAX_CHARS: number = undefined; // No Limit
readonly acceptsFiles: string[] = ['jpg', 'jpeg', 'png', 'gif', 'md', 'txt', 'pdf', 'swf', 'mp3'];
readonly usernameShortcuts = [
{
Expand Down

0 comments on commit 82707cf

Please sign in to comment.