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-9.1.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.2.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.2.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-9.0.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-9.0.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.1.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.1.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.1.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-7.2.2 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-7.2.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-7.2.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-5.0.8 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-8.0.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-7.1.1 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-7.1.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-7.0.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-5.0.7 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-5.0.6 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-6.2.0 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js
foreman_remote_execution-5.0.5 webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js