Sha256: aa426af54a22ef851bb7a068097002af0b89ea5360ec4be8ba1ac63da9ba1d7f

Contents?: true

Size: 905 Bytes

Versions: 95

Compression:

Stored size: 905 Bytes

Contents

import Immutable from 'seamless-immutable';

export const initialState = Immutable({
  isPolling: false,
  jobInvocations: [],
  statuses: {},
});

export const pollingStarted = Immutable({
  isPolling: true,
  jobInvocations: [],
  statuses: {},
});

export const jobInvocationsPayload = Immutable({
  jobInvocations: {
    job_invocations: [
      ['Success', 100, '#B7312D'],
      ['Failed', 20, '#B7312D'],
      ['Pending', 40, '#B7312D'],
      ['Cancelled', 0, '#B7312D'],
    ],
    statuses: {
      cancelled: 0,
      failed: 0,
      pending: 0,
      success: 1,
    },
  },
});

export const jobInvocationsReceived = Immutable({
  isPolling: true,
  jobInvocations: [
    ['Success', 100, '#B7312D'],
    ['Failed', 20, '#B7312D'],
    ['Pending', 40, '#B7312D'],
    ['Cancelled', 0, '#B7312D'],
  ],
  statuses: {
    cancelled: 0,
    failed: 0,
    pending: 0,
    success: 1,
  },
});

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
foreman_remote_execution-14.1.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-14.1.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-14.1.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-14.0.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-14.0.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-13.2.6 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-14.0.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-13.2.5 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-13.2.4 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-13.2.3 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-13.2.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-12.0.7 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-13.2.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-13.2.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.1.3 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-13.0.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-12.0.5 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-12.0.4 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-12.0.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-12.0.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js