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-11.1.3 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.1.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-12.0.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.1.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-11.1.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-11.1.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.1.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.3.3 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.3.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-11.0.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.0.7 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.3.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.0.6 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.0.5 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.0.4 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.0.3 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.0.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.0.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-10.0.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.3.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js