Skip to content

Commit

Permalink
Use ferdi namespace on debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
vantezzen committed Sep 12, 2019
1 parent 644e22b commit 828f4bc
Show file tree
Hide file tree
Showing 43 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion docs/example-feature/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ExampleFeatureStore } from './store';
import state, { resetState } from './state';
import api from './api';

const debug = require('debug')('Franz:feature:EXAMPLE_FEATURE');
const debug = require('debug')('Ferdi:feature:EXAMPLE_FEATURE');

let store = null;

Expand Down
2 changes: 1 addition & 1 deletion docs/example-feature/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { action, observable, reaction } from 'mobx';
import Store from '../../src/stores/lib/Store';
import Request from '../../src/stores/lib/Request';

const debug = require('debug')('Franz:feature:EXAMPLE_FEATURE:store');
const debug = require('debug')('Ferdi:feature:EXAMPLE_FEATURE:store');

export class ExampleFeatureStore extends Store {
@observable getNameRequest = new Request(this.api, 'getName');
Expand Down
2 changes: 1 addition & 1 deletion src/api/server/LocalApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import du from 'du';

import { getServicePartitionsDirectory } from '../../helpers/service-helpers.js';

const debug = require('debug')('Franz:LocalApi');
const debug = require('debug')('Ferdi:LocalApi');

const { session } = remote;

Expand Down
2 changes: 1 addition & 1 deletion src/api/server/ServerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
removeServicePartitionDirectory,
} from '../../helpers/service-helpers.js';

const debug = require('debug')('Franz:ServerApi');
const debug = require('debug')('Ferdi:ServerApi');

module.paths.unshift(
getDevRecipeDirectory(),
Expand Down
2 changes: 1 addition & 1 deletion src/electron/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'path';

import { SETTINGS_PATH } from '../config';

const debug = require('debug')('Franz:Settings');
const debug = require('debug')('Ferdi:Settings');

export default class Settings {
type = '';
Expand Down
2 changes: 1 addition & 1 deletion src/electron/ipc-api/autoUpdate.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { app, ipcMain } from 'electron';
import { autoUpdater } from 'electron-updater';

const debug = require('debug')('Franz:ipcApi:autoUpdate');
const debug = require('debug')('Ferdi:ipcApi:autoUpdate');

export default (params) => {
if (process.platform === 'darwin' || process.platform === 'win32' || process.env.APPIMAGE) {
Expand Down
2 changes: 1 addition & 1 deletion src/electron/ipc-api/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { download } from 'electron-dl';
import mime from 'mime-types';
import fs from 'fs-extra';

const debug = require('debug')('Franz:ipcApi:download');
const debug = require('debug')('Ferdi:ipcApi:download');

function decodeBase64Image(dataString) {
const matches = dataString.match(/^data:([A-Za-z-+/]+);base64,(.+)$/);
Expand Down
2 changes: 1 addition & 1 deletion src/features/announcements/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { remote } from 'electron';
import Request from '../../stores/lib/Request';
import apiBase from '../../api/apiBase';

const debug = require('debug')('Franz:feature:announcements:api');
const debug = require('debug')('Ferdi:feature:announcements:api');

export const announcementsApi = {
async getCurrentVersion() {
Expand Down
2 changes: 1 addition & 1 deletion src/features/announcements/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { reaction } from 'mobx';
import { AnnouncementsStore } from './store';

const debug = require('debug')('Franz:feature:announcements');
const debug = require('debug')('Ferdi:feature:announcements');

export const GA_CATEGORY_ANNOUNCEMENTS = 'Announcements';

Expand Down
2 changes: 1 addition & 1 deletion src/features/announcements/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { DEFAULT_APP_SETTINGS } from '../../config';

const LOCAL_STORAGE_KEY = 'announcements';

const debug = require('debug')('Franz:feature:announcements:store');
const debug = require('debug')('Ferdi:feature:announcements:store');

export class AnnouncementsStore extends FeatureStore {
@observable targetVersion = null;
Expand Down
2 changes: 1 addition & 1 deletion src/features/basicAuth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { observable } from 'mobx';

import BasicAuthComponent from './Component';

const debug = require('debug')('Franz:feature:basicAuth');
const debug = require('debug')('Ferdi:feature:basicAuth');

const defaultState = {
isModalVisible: true,
Expand Down
2 changes: 1 addition & 1 deletion src/features/basicAuth/mainIpcHandler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const debug = require('debug')('Franz:feature:basicAuth:main');
const debug = require('debug')('Ferdi:feature:basicAuth:main');

export default function mainIpcHandler(mainWindow, authInfo) {
debug('Sending basic auth call', authInfo);
Expand Down
2 changes: 1 addition & 1 deletion src/features/communityRecipes/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { reaction } from 'mobx';
import { CommunityRecipesStore } from './store';

const debug = require('debug')('Franz:feature:communityRecipes');
const debug = require('debug')('Ferdi:feature:communityRecipes');

export const DEFAULT_SERVICE_LIMIT = 3;

Expand Down
2 changes: 1 addition & 1 deletion src/features/communityRecipes/store.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { computed, observable } from 'mobx';
import { FeatureStore } from '../utils/FeatureStore';

const debug = require('debug')('Franz:feature:communityRecipes:store');
const debug = require('debug')('Ferdi:feature:communityRecipes:store');

export class CommunityRecipesStore extends FeatureStore {
@observable isCommunityRecipesIncludedInCurrentPlan = false;
Expand Down
2 changes: 1 addition & 1 deletion src/features/delayApp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import DelayAppComponent from './Component';

import { DEFAULT_FEATURES_CONFIG } from '../../config';

const debug = require('debug')('Franz:feature:delayApp');
const debug = require('debug')('Ferdi:feature:delayApp');

export const config = {
delayOffset: DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.delayOffset,
Expand Down
2 changes: 1 addition & 1 deletion src/features/serviceLimit/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { reaction } from 'mobx';
import { ServiceLimitStore } from './store';

const debug = require('debug')('Franz:feature:serviceLimit');
const debug = require('debug')('Ferdi:feature:serviceLimit');

export const DEFAULT_SERVICE_LIMIT = 3;

Expand Down
2 changes: 1 addition & 1 deletion src/features/serviceLimit/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { computed, observable } from 'mobx';
import { FeatureStore } from '../utils/FeatureStore';
import { DEFAULT_SERVICE_LIMIT } from '.';

const debug = require('debug')('Franz:feature:serviceLimit:store');
const debug = require('debug')('Ferdi:feature:serviceLimit:store');

export class ServiceLimitStore extends FeatureStore {
@observable isServiceLimitEnabled = false;
Expand Down
2 changes: 1 addition & 1 deletion src/features/serviceProxy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { remote } from 'electron';

const { session } = remote;

const debug = require('debug')('Franz:feature:serviceProxy');
const debug = require('debug')('Ferdi:feature:serviceProxy');

export const config = observable({
isEnabled: true,
Expand Down
2 changes: 1 addition & 1 deletion src/features/settingsWS/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { reaction } from 'mobx';
import { SettingsWSStore } from './store';

const debug = require('debug')('Franz:feature:settingsWS');
const debug = require('debug')('Ferdi:feature:settingsWS');

export const settingsStore = new SettingsWSStore();

Expand Down
2 changes: 1 addition & 1 deletion src/features/settingsWS/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { FeatureStore } from '../utils/FeatureStore';
import { createReactions } from '../../stores/lib/Reaction';
import { WS_API } from '../../environment';

const debug = require('debug')('Franz:feature:settingsWS:store');
const debug = require('debug')('Ferdi:feature:settingsWS:store');

export class SettingsWSStore extends FeatureStore {
stores = null;
Expand Down
2 changes: 1 addition & 1 deletion src/features/shareFranz/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { state as delayAppState } from '../delayApp';

export { default as Component } from './Component';

const debug = require('debug')('Franz:feature:shareFranz');
const debug = require('debug')('Ferdi:feature:shareFranz');

const defaultState = {
isModalVisible: false,
Expand Down
2 changes: 1 addition & 1 deletion src/features/spellchecker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { autorun, observable } from 'mobx';

import { DEFAULT_FEATURES_CONFIG } from '../../config';

const debug = require('debug')('Franz:feature:spellchecker');
const debug = require('debug')('Ferdi:feature:spellchecker');

export const config = observable({
isIncludedInCurrentPlan: DEFAULT_FEATURES_CONFIG.isSpellcheckerIncludedInCurrentPlan,
Expand Down
2 changes: 1 addition & 1 deletion src/features/todos/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { reaction } from 'mobx';
import TodoStore from './store';

const debug = require('debug')('Franz:feature:todos');
const debug = require('debug')('Ferdi:feature:todos');

export const GA_CATEGORY_TODOS = 'Todos';

Expand Down
2 changes: 1 addition & 1 deletion src/features/todos/preload.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ipcRenderer } from 'electron';
import { IPC } from './constants';

const debug = require('debug')('Franz:feature:todos:preload');
const debug = require('debug')('Ferdi:feature:todos:preload');

debug('Preloading Todos Webview');

Expand Down
2 changes: 1 addition & 1 deletion src/features/todos/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
import { IPC } from './constants';
import { state as delayAppState } from '../delayApp';

const debug = require('debug')('Franz:feature:todos:store');
const debug = require('debug')('Ferdi:feature:todos:store');

export default class TodoStore extends FeatureStore {
@observable isFeatureEnabled = false;
Expand Down
2 changes: 1 addition & 1 deletion src/features/workspaces/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Request from '../../stores/lib/Request';
import Workspace from './models/Workspace';
import apiBase from '../../api/apiBase';

const debug = require('debug')('Franz:feature:workspaces:api');
const debug = require('debug')('Ferdi:feature:workspaces:api');

export const workspaceApi = {
getUserWorkspaces: async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/features/workspaces/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { reaction } from 'mobx';
import WorkspacesStore from './store';
import { resetApiRequests } from './api';

const debug = require('debug')('Franz:feature:workspaces');
const debug = require('debug')('Ferdi:feature:workspaces');

export const GA_CATEGORY_WORKSPACES = 'Workspaces';

Expand Down
2 changes: 1 addition & 1 deletion src/features/workspaces/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { WORKSPACES_ROUTES } from './index';
import { createReactions } from '../../stores/lib/Reaction';
import { createActionBindings } from '../utils/ActionBinding';

const debug = require('debug')('Franz:feature:workspaces:store');
const debug = require('debug')('Ferdi:feature:workspaces:store');

export default class WorkspacesStore extends FeatureStore {
@observable isFeatureEnabled = true;
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/url-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { URL } from 'url';

import { ALLOWED_PROTOCOLS } from '../config';

const debug = require('debug')('Franz:Helpers:url');
const debug = require('debug')('Ferdi:Helpers:url');

export function isValidExternalURL(url) {
const parsedUrl = new URL(url);
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Franz</title>
<title>Ferdi</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" type="text/css" href="./styles/main.css" />
<script type="text/javascript" src="./app.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { asarPath } from './helpers/asar-helpers';
import { isValidExternalURL } from './helpers/url-helpers';
/* eslint-enable import/first */

const debug = require('debug')('Franz:App');
const debug = require('debug')('Ferdi:App');

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
Expand Down
2 changes: 1 addition & 1 deletion src/models/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { computed, observable, autorun } from 'mobx';
import path from 'path';
import normalizeUrl from 'normalize-url';

const debug = require('debug')('Franz:Service');
const debug = require('debug')('Ferdi:Service');

export const RESTRICTION_TYPES = {
SERVICE_LIMIT: 0,
Expand Down
4 changes: 2 additions & 2 deletions src/stores/AppStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ import { getLocale } from '../helpers/i18n-helpers';
import { getServiceIdsFromPartitions, removeServicePartitionDirectory } from '../helpers/service-helpers.js';
import { isValidExternalURL } from '../helpers/url-helpers';

const debug = require('debug')('Franz:AppStore');
const debug = require('debug')('Ferdi:AppStore');

const { app, systemPreferences, screen } = remote;

const mainWindow = remote.getCurrentWindow();

const defaultLocale = DEFAULT_APP_SETTINGS.locale;
const autoLauncher = new AutoLaunch({
name: 'Franz',
name: 'Ferdi',
});

export default class AppStore extends Store {
Expand Down
2 changes: 1 addition & 1 deletion src/stores/RecipesStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import CachedRequest from './lib/CachedRequest';
import Request from './lib/Request';
import { matchRoute } from '../helpers/routing-helpers';

const debug = require('debug')('Franz:RecipeStore');
const debug = require('debug')('Ferdi:RecipeStore');

export default class RecipesStore extends Store {
@observable allRecipesRequest = new CachedRequest(this.api.recipes, 'all');
Expand Down
2 changes: 1 addition & 1 deletion src/stores/RequestStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ms from 'ms';

import Store from './lib/Store';

const debug = require('debug')('Franz:RequestsStore');
const debug = require('debug')('Ferdi:RequestsStore');

export default class RequestStore extends Store {
@observable userInfoRequest;
Expand Down
2 changes: 1 addition & 1 deletion src/stores/ServicesStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { workspaceStore } from '../features/workspaces';
import { serviceLimitStore } from '../features/serviceLimit';
import { RESTRICTION_TYPES } from '../models/Service';

const debug = require('debug')('Franz:ServiceStore');
const debug = require('debug')('Ferdi:ServiceStore');

export default class ServicesStore extends Store {
@observable allServicesRequest = new CachedRequest(this.api.services, 'all');
Expand Down
2 changes: 1 addition & 1 deletion src/stores/SettingsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { API } from '../environment';
import { DEFAULT_APP_SETTINGS, FILE_SYSTEM_SETTINGS_TYPES } from '../config';
import { SPELLCHECKER_LOCALES } from '../i18n/languages';

const debug = require('debug')('Franz:SettingsStore');
const debug = require('debug')('Ferdi:SettingsStore');

export default class SettingsStore extends Store {
@observable appSettingsRequest = new CachedRequest(this.api.local, 'getAppSettings');
Expand Down
2 changes: 1 addition & 1 deletion src/stores/UserStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { sleep } from '../helpers/async-helpers';
import { getPlan } from '../helpers/plan-helpers';
import { PLANS } from '../config';

const debug = require('debug')('Franz:UserStore');
const debug = require('debug')('Ferdi:UserStore');

// TODO: split stores into UserStore and AuthStore
export default class UserStore extends Store {
Expand Down
2 changes: 1 addition & 1 deletion src/webview/contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { isDevMode, isMac } from '../environment';
import { SPELLCHECKER_LOCALES } from '../i18n/languages';

const debug = require('debug')('Franz:contextMenu');
const debug = require('debug')('Ferdi:contextMenu');

const { Menu } = remote;

Expand Down
2 changes: 1 addition & 1 deletion src/webview/darkmode.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import path from 'path';
import fs from 'fs-extra';

const debug = require('debug')('Franz:DarkMode');
const debug = require('debug')('Ferdi:DarkMode');

const chars = [...'abcdefghijklmnopqrstuvwxyz'];

Expand Down
2 changes: 1 addition & 1 deletion src/webview/notifications.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ipcRenderer } from 'electron';
import uuidV1 from 'uuid/v1';

const debug = require('debug')('Franz:Notifications');
const debug = require('debug')('Ferdi:Notifications');

class Notification {
static permission = 'granted';
Expand Down
2 changes: 1 addition & 1 deletion src/webview/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import './notifications';

import { DEFAULT_APP_SETTINGS } from '../config';

const debug = require('debug')('Franz:Plugin');
const debug = require('debug')('Ferdi:Plugin');

class RecipeController {
@observable settings = {
Expand Down
2 changes: 1 addition & 1 deletion src/webview/spellchecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'path';
import { DICTIONARY_PATH } from '../config';
import { SPELLCHECKER_LOCALES } from '../i18n/languages';

const debug = require('debug')('Franz:spellchecker');
const debug = require('debug')('Ferdi:spellchecker');

let provider;
let currentDict;
Expand Down

0 comments on commit 828f4bc

Please sign in to comment.