Projects STRLCPY opencti Commits 62b4543a
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    opencti-platform/node_modules/.yarn-integrity
     1 +{
     2 + "systemParams": "win32-x64-111",
     3 + "modulesFolders": [],
     4 + "flags": [],
     5 + "linkedModules": [],
     6 + "topLevelPatterns": [],
     7 + "lockfileEntries": {},
     8 + "files": [],
     9 + "artifacts": {}
     10 +}
  • ■ ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/techniques/DataComponents.tsx
    1 1  import React from 'react';
    2  -import { graphql } from 'react-relay';
    3  -import makeStyles from '@mui/styles/makeStyles';
    4 2  import { QueryRenderer } from '../../../relay/environment';
    5  -import { useFormatter } from '../../../components/i18n';
    6 3  import DataComponentLines, { dataComponentsLinesQuery } from './data_components/DataComponentsLines';
    7 4  import Security, { KNOWLEDGE_KNUPDATE } from '../../../utils/Security';
    8 5  import DataComponentCreation from './data_components/DataComponentCreation';
    skipped 75 lines
  • ■ ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/techniques/data_components/DataComponent.tsx
    skipped 23 lines
    24 24   },
    25 25  }));
    26 26   
     27 +const DataComponentFragment = graphql`
     28 + fragment DataComponent_dataComponent on DataComponent {
     29 + id
     30 + standard_id
     31 + x_opencti_stix_ids
     32 + spec_version
     33 + revoked
     34 + confidence
     35 + created
     36 + modified
     37 + created_at
     38 + updated_at
     39 + createdBy {
     40 + ... on Identity {
     41 + id
     42 + name
     43 + entity_type
     44 + }
     45 + }
     46 + creator {
     47 + id
     48 + name
     49 + }
     50 + objectMarking {
     51 + edges {
     52 + node {
     53 + id
     54 + definition
     55 + x_opencti_color
     56 + }
     57 + }
     58 + }
     59 + objectLabel {
     60 + edges {
     61 + node {
     62 + id
     63 + value
     64 + color
     65 + }
     66 + }
     67 + }
     68 + name
     69 + aliases
     70 + status {
     71 + id
     72 + order
     73 + template {
     74 + name
     75 + color
     76 + }
     77 + }
     78 + workflowEnabled
     79 + ...DataComponentDetails_dataComponent
     80 + }
     81 +`;
     82 + 
    27 83  interface DataComponentComponentProps {
    28 84   data: DataComponent_dataComponent$key
    29 85   enableReferences: boolean
    skipped 62 lines
    92 148   </div>
    93 149   );
    94 150  };
    95  - 
    96  -const DataComponentFragment = graphql`
    97  - fragment DataComponent_dataComponent on DataComponent {
    98  - id
    99  - standard_id
    100  - x_opencti_stix_ids
    101  - spec_version
    102  - revoked
    103  - confidence
    104  - created
    105  - modified
    106  - created_at
    107  - updated_at
    108  - createdBy {
    109  - ... on Identity {
    110  - id
    111  - name
    112  - entity_type
    113  - }
    114  - }
    115  - creator {
    116  - id
    117  - name
    118  - }
    119  - objectMarking {
    120  - edges {
    121  - node {
    122  - id
    123  - definition
    124  - x_opencti_color
    125  - }
    126  - }
    127  - }
    128  - objectLabel {
    129  - edges {
    130  - node {
    131  - id
    132  - value
    133  - color
    134  - }
    135  - }
    136  - }
    137  - name
    138  - aliases
    139  - status {
    140  - id
    141  - order
    142  - template {
    143  - name
    144  - color
    145  - }
    146  - }
    147  - workflowEnabled
    148  - ...DataComponentDetails_dataComponent
    149  - }
    150  -`;
    151 151   
    152 152  export default DataComponentComponent;
    153 153   
  • ■ ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/techniques/data_components/DataComponentDetails.tsx
    skipped 17 lines
    18 18   },
    19 19  }));
    20 20   
     21 +const DataComponentDetailsFragment = graphql`
     22 + fragment DataComponentDetails_dataComponent on DataComponent {
     23 + id
     24 + description
     25 + creator {
     26 + id
     27 + name
     28 + }
     29 + objectLabel {
     30 + edges {
     31 + node {
     32 + id
     33 + value
     34 + color
     35 + }
     36 + }
     37 + }
     38 + }
     39 +`;
     40 + 
     41 +// TODO: refacto with this mechanism
     42 + 
    21 43  interface DataComponentDetailsProps {
    22 44   dataComponent: DataComponentDetails_dataComponent$key
    23 45  }
    skipped 25 lines
    49 71   </div>
    50 72   );
    51 73  };
    52  - 
    53  -const DataComponentDetailsFragment = graphql`
    54  - fragment DataComponentDetails_dataComponent on DataComponent {
    55  - id
    56  - description
    57  - creator {
    58  - id
    59  - name
    60  - }
    61  - objectLabel {
    62  - edges {
    63  - node {
    64  - id
    65  - value
    66  - color
    67  - }
    68  - }
    69  - }
    70  - }
    71  - `;
    72  - 
    73  -// TODO: refacto with this mechanism
    74 74   
    75 75  export default DataComponentDetailsComponent;
    76 76   
  • ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/techniques/data_components/DataComponentEditionOverview.tsx
    skipped 320 lines
    321 321   )}
    322 322   </Formik>
    323 323   );
    324  -}
     324 +};
    325 325   
    326 326  const DataComponentEditionOverviewFragment = graphql`
    327 327   fragment DataComponentEditionOverview_dataComponent on DataComponent {
    skipped 33 lines
  • ■ ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/techniques/data_components/DataComponentKnowledge.tsx
    skipped 12 lines
    13 13   },
    14 14  }));
    15 15   
     16 +const DataComponentKnowledgeFragment = graphql`
     17 + fragment DataComponentKnowledge_dataComponent on DataComponent {
     18 + id
     19 + name
     20 + aliases
     21 + }
     22 +`;
     23 + 
    16 24  interface DataComponentKnowledgeComponentProps {
    17 25   data: DataComponentKnowledge_dataComponent$key
    18 26   enableReferences: boolean
    skipped 1 lines
    20 28   
    21 29  const DataComponentKnowledgeComponent: FunctionComponent<DataComponentKnowledgeComponentProps> = ({
    22 30   data,
    23  - enableReferences
     31 + enableReferences,
    24 32  }) => {
    25 33   const classes = styles();
    26 34   
    skipped 23 lines
    50 58   </Switch>
    51 59   </div>
    52 60   );
    53  -}
    54  - 
    55  -const DataComponentKnowledgeFragment = graphql`
    56  - fragment DataComponentKnowledge_dataComponent on DataComponent {
    57  - id
    58  - name
    59  - aliases
    60  - }
    61  -`;
     61 +};
    62 62   
    63 63  export default DataComponentKnowledgeComponent;
    64 64   
  • ■ ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/techniques/data_components/DataComponentLine.tsx
    skipped 7 lines
    8 8  import { KeyboardArrowRightOutlined } from '@mui/icons-material';
    9 9  import { Theme } from '@mui/material/styles/createTheme';
    10 10  import Skeleton from '@mui/material/Skeleton';
    11  -import { useFormatter } from '../../../../components/i18n';
    12 11  import { createFragmentContainer, graphql } from 'react-relay';
     12 +import { useFormatter } from '../../../../components/i18n';
    13 13  import { DataComponentLine_node$data } from './__generated__/DataComponentLine_node.graphql';
    14 14   
    15 15  const useStyles = makeStyles((theme: Theme) => ({
    skipped 38 lines
    54 54   node: DataComponentLine_node$data
    55 55  }
    56 56   
    57  -const DataComponentLineComponent: FunctionComponent<DataComponentLineProps> = ({ node}) => {
     57 +const DataComponentLineComponent: FunctionComponent<DataComponentLineProps> = ({ node }) => {
    58 58   const classes = useStyles();
    59 59   const { t } = useFormatter();
    60 60   
    skipped 85 lines
  • ■ ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/techniques/data_components/DataComponentOverview.tsx
    skipped 19 lines
    20 20   },
    21 21  }));
    22 22   
     23 +const DataComponentOverviewFragment = graphql`
     24 + fragment DataComponentOverview_dataComponent on DataComponent {
     25 + id
     26 + name
     27 + description
     28 + created
     29 + modified
     30 + objectMarking {
     31 + edges {
     32 + node {
     33 + id
     34 + definition
     35 + }
     36 + }
     37 + }
     38 + createdBy {
     39 + ... on Identity {
     40 + id
     41 + name
     42 + entity_type
     43 + }
     44 + }
     45 + }
     46 +`;
     47 + 
    23 48  interface DataComponentOverviewComponentProps {
    24 49   data: DataComponentOverview_dataComponent$key
    25 50  }
    skipped 1 lines
    27 52  const DataComponentOverviewComponent: FunctionComponent<DataComponentOverviewComponentProps> = ({ data }) => {
    28 53   const {
    29 54   t,
    30  - fldt
     55 + fldt,
    31 56   } = useFormatter();
    32 57   const classes = styles();
    33 58   
    skipped 17 lines
    51 76   key={markingDefinition?.node?.id}
    52 77   label={markingDefinition?.node?.definition}
    53 78   />
    54  - )
     79 + ),
    55 80   )
    56 81   ) : (
    57 82   <ItemMarking label="TLP:CLEAR" />
    skipped 37 lines
    95 120   </Paper>
    96 121   </div>
    97 122   );
    98  -}
    99  - 
    100  -const DataComponentOverviewFragment = graphql`
    101  - fragment DataComponentOverview_dataComponent on DataComponent {
    102  - id
    103  - name
    104  - description
    105  - created
    106  - modified
    107  - objectMarking {
    108  - edges {
    109  - node {
    110  - id
    111  - definition
    112  - }
    113  - }
    114  - }
    115  - createdBy {
    116  - ... on Identity {
    117  - id
    118  - name
    119  - entity_type
    120  - }
    121  - }
    122  - }
    123  -`;
     123 +};
    124 124   
    125 125  export default DataComponentOverviewComponent;
    126 126   
  • ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/techniques/data_components/Root.tsx
    skipped 116 lines
    117 117   stixDomainObject={props.dataComponent}
    118 118   PopoverComponent={<DataComponentPopover
    119 119   dataComponentId={dataComponentId}
    120  - enableReferences={props.settings.platform_enable_reference?.includes(
    121  - 'Data-Component',
    122  - )}/>}
     120 + />}
    123 121   />
    124 122   <FileManager
    125 123   {...routeProps}
    skipped 18 lines
    144 142   stixDomainObject={props.dataComponent}
    145 143   PopoverComponent={<DataComponentPopover
    146 144   dataComponentId={dataComponentId}
    147  - enableReferences={props.settings.platform_enable_reference?.includes(
    148  - 'Data-Component',
    149  - )}
    150 145   />}
    151 146   />
    152 147   <StixCoreObjectHistory
    skipped 20 lines
  • ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/utils/Security.tsx
    skipped 1 lines
    2 2  import { filter, includes } from 'ramda';
    3 3  import { RootPrivateQuery$data } from '../private/__generated__/RootPrivateQuery.graphql';
    4 4  import { ModuleHelper } from './platformModulesHelper';
     5 +// eslint-disable-next-line import/no-cycle
    5 6  import useAuth from './hooks/useAuth';
    6 7   
    7 8  export interface UserContextType {
    skipped 92 lines
  • ■ ■ ■ ■ ■
    opencti-platform/yarn.lock
     1 +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
     2 +# yarn lockfile v1
     3 + 
     4 + 
     5 + 
Please wait...
Page is in error, reload to recover