--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/editor/src/less/app.less:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // Components
18 | @import 'components/slider';
19 |
20 | // Dialogs
21 | @import 'dialogs/all';
22 | @import 'dialogs/flex';
--------------------------------------------------------------------------------
/bundles/core/src/test/resources/OSGI-INF/com.adobe.dx.utils.service.internal.CloudConfigReaderImpl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
11 |
12 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/author/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2019 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/configs/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2019 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/editor/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2019 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
--------------------------------------------------------------------------------
/apps/content/core/src/test/resources/OSGI-INF/com.adobe.dx.content.marketo.service.internal.MarketoServiceImpl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
11 |
12 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/editor/css.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/css
18 | app.min.css
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/css.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2019 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/css
18 | app.min.css
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/registry/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2019 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/clientlibs/configs/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
19 |
--------------------------------------------------------------------------------
/bundles/testing-extensions/src/main/resources/OSGI-INF/com.adobe.dx.utils.service.internal.CloudConfigReaderImpl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
11 |
12 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/clientlibs/configs/css.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/css
18 | app.min.css
19 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/clientlibs/configs/src/less/GradientConfig/gradientConfig.less:
--------------------------------------------------------------------------------
1 | .dx-gradient-picker {
2 |
3 | .css-string-formitem {
4 | .spectrum-Form-itemField {
5 | width: 100%;
6 | }
7 |
8 | &-textarea {
9 | width: 100%;
10 | height: 90px;
11 | }
12 | }
13 |
14 | .gradient-control {
15 | &-corner {
16 | margin-top: 20px;
17 |
18 | &-buttons {
19 | display: flex;
20 | flex-wrap: wrap;
21 | }
22 | }
23 |
24 | .spectrum-ActionButton {
25 | margin-left: 0;
26 | }
27 | }
28 |
29 | .well-docs {
30 | min-width: initial;
31 | }
32 |
33 | .linear-directions-text {
34 | text-align: center;
35 | width: 90px;
36 | }
37 | }
38 |
39 |
40 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/author/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
19 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/configs/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
19 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/editor/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
19 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/publish/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
19 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/clientlibs/marketoAuthor/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
19 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/clientlibs/marketoPublish/css.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/css
18 | app.min.css
19 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/clientlibs/marketoPublish/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | app.min.js
19 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/author/css.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/css
18 | app.min.css
19 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/configs/css.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/css
18 | app.min.css
19 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/configs/src/less/GradientConfig/gradientConfig.less:
--------------------------------------------------------------------------------
1 | .dx-gradient-picker {
2 |
3 | .css-string-formitem {
4 | .spectrum-Form-itemField {
5 | width: 100%;
6 | }
7 |
8 | &-textarea {
9 | width: 100%;
10 | height: 90px;
11 | }
12 | }
13 |
14 | .gradient-control {
15 | &-corner {
16 | margin-top: 20px;
17 |
18 | &-buttons {
19 | display: flex;
20 | flex-wrap: wrap;
21 | }
22 | }
23 |
24 | .spectrum-ActionButton {
25 | margin-left: 0;
26 | }
27 | }
28 |
29 | .well-docs {
30 | min-width: initial;
31 | }
32 |
33 | .linear-directions-text {
34 | text-align: center;
35 | width: 90px;
36 | }
37 | }
38 |
39 |
40 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/editor/css.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/css
18 | app.min.css
19 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/publish/css.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2020 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/css
18 | app.min.css
19 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/reactumd/js.txt:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright 2019 Adobe
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | ###############################################################################
16 |
17 | #base=dist/js
18 | react.production.min.js
19 | react-dom.production.min.js
20 |
--------------------------------------------------------------------------------
/apps/admin/core/src/test/resources/simplelogger.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | org.slf4j.simpleLogger.defaultLogLevel=error
19 |
--------------------------------------------------------------------------------
/apps/scripts/app/jcr_root/apps/dx/scripts/libs/replace/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
--------------------------------------------------------------------------------
/bundles/core/src/test/resources/simplelogger.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | org.slf4j.simpleLogger.defaultLogLevel=error
19 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/components/marketo/footer/footer.html:
--------------------------------------------------------------------------------
1 |
5 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/utils/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.utils;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/inlinestyle/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.inlinestyle;
18 |
19 | import org.osgi.annotation.versioning.Version;
--------------------------------------------------------------------------------
/apps/content/app/jest.config.js:
--------------------------------------------------------------------------------
1 | const config = {
2 | collectCoverageFrom: [
3 | '**/*.{js,jsx}',
4 | '!**/node_modules/**',
5 | '!**/dist/**',
6 | '!.history/**',
7 | '!webpack.config.js',
8 | '!webpack.config/**',
9 | '!**/js_reports/**',
10 | '!./*.js',
11 | ],
12 | coverageDirectory: '/js_reports/coverage',
13 | projects: [
14 | {
15 | displayName: 'test',
16 | moduleNameMapper: {
17 | '\\.(css|less)$': '/.jestconfig/__mocks__/styleMock.js',
18 | },
19 | transform: {
20 | '^.+\\.js?$': './babelwrapper.js',
21 | },
22 | setupFilesAfterEnv: ['/.jestconfig/jest.setup.js'],
23 | testPathIgnorePatterns: ['/node_modules/', '/.history/'],
24 | },
25 | ],
26 | testResultsProcessor: 'jest-sonar-reporter',
27 | };
28 |
29 | module.exports = config;
30 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/domtagging/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.1.0")
17 | package com.adobe.dx.domtagging;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/responsive/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.2.0")
17 | package com.adobe.dx.responsive;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/styleguide/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.styleguide;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/apps/structure/app/jest.config.js:
--------------------------------------------------------------------------------
1 | const config = {
2 | collectCoverageFrom: [
3 | '**/*.{js,jsx}',
4 | '!**/node_modules/**',
5 | '!**/dist/**',
6 | '!.history/**',
7 | '!webpack.config.js',
8 | '!webpack.config/**',
9 | '!**/js_reports/**',
10 | '!./*.js',
11 | ],
12 | coverageDirectory: '/js_reports/coverage',
13 | projects: [
14 | {
15 | displayName: 'test',
16 | moduleNameMapper: {
17 | '\\.(css|less)$': '/.jestconfig/__mocks__/styleMock.js',
18 | },
19 | transform: {
20 | '^.+\\.js?$': './babelwrapper.js',
21 | },
22 | setupFilesAfterEnv: ['/.jestconfig/jest.setup.js'],
23 | testPathIgnorePatterns: ['/node_modules/', '/.history/'],
24 | },
25 | ],
26 | testResultsProcessor: 'jest-sonar-reporter',
27 | };
28 |
29 | module.exports = config;
30 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/utils/service/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.utils.service;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/servlet/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.admin.servlet;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/apps/structure/core/src/main/java/com/adobe/dx/structure/flex/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.2")
17 | package com.adobe.dx.structure.flex;
18 |
19 | import org.osgi.annotation.versioning.Version;
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/editor/src/js/components/caColorfield/index.js:
--------------------------------------------------------------------------------
1 | const CORAL_INPUT_SELECTOR = '._coral-ColorInput';
2 | const SELECTED_SELECTOR = '[selected]';
3 |
4 | const handleChange = (target) => {
5 | const selectedItem = target.querySelector(SELECTED_SELECTOR);
6 | const input = target.nextElementSibling;
7 | if (selectedItem && target.value) {
8 | input.value = selectedItem.dataset.dxValue;
9 | } else {
10 | input.value = target.value;
11 | }
12 | return input.value;
13 | };
14 |
15 | const getColorfieldInput = (element) => {
16 | return element.querySelector(CORAL_INPUT_SELECTOR);
17 | };
18 |
19 | const caColorfields = (colorfields) => {
20 | colorfields.forEach((colorfield) => {
21 | getColorfieldInput(colorfield).addEventListener('change', (e) => {
22 | handleChange(e.target);
23 | });
24 | });
25 | };
26 |
27 | export { handleChange, getColorfieldInput, caColorfields };
28 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/config/fonts/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.admin.config.fonts;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/config/manager/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.admin.config.manager;
18 |
19 | import org.osgi.annotation.versioning.Version;
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/components/datasource/contextawaredatasource/contextawaredatasource.html:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/rendercondition/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.admin.rendercondition;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/apps/content/core/src/main/java/com/adobe/dx/content/marketo/models/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.content.marketo.models;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/datasource/internal/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.admin.datasource.internal;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/components/parlite/_cq_design_dialog/.content.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/components/cacolorfield/package-info.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | @Version("0.0.1")
17 | package com.adobe.dx.admin.components.cacolorfield;
18 |
19 | import org.osgi.annotation.versioning.Version;
20 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/utils/Worker.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 |
17 | package com.adobe.dx.utils;
18 |
19 | public interface Worker {
20 |
21 | /**
22 | * @return key with which the worker can be identified
23 | */
24 | String getKey();
25 | }
26 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/src/js/ConfigManager/dialogs/Underlay.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import React from 'react';
18 |
19 | const underlay = (props) => {
20 | const { open } = props;
21 | const classNames = ['spectrum-Underlay'];
22 | if (open) classNames.push('is-open');
23 | return ;
24 | };
25 |
26 | export default underlay;
27 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/config/manager/Constants.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | package com.adobe.dx.admin.config.manager;
17 |
18 | public final class Constants {
19 |
20 | private Constants() {
21 | }
22 |
23 | public static final String CONF_ROOT = "/conf";
24 | }
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/components/adobe-fonts/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
--------------------------------------------------------------------------------
/apps/admin/app/jest.config.js:
--------------------------------------------------------------------------------
1 | // Ignore for code coverage
2 | /* istanbul ignore file */
3 |
4 | const config = {
5 | collectCoverageFrom: [
6 | '**/*.{js,jsx}',
7 | '!**/node_modules/**',
8 | '!**/dist/**',
9 | '!.history/**',
10 | '!webpack.config.js',
11 | '!webpack.config/**',
12 | '!**/js_reports/**',
13 | ],
14 | coverageDirectory: '/js_reports/coverage',
15 | projects: [
16 | {
17 | displayName: 'test',
18 | moduleNameMapper: {
19 | '\\.(css|less)$': '/.jestconfig/__mocks__/styleMock.js',
20 | },
21 | transform: {
22 | '\\.html$': 'jest-raw-loader',
23 | '^.+\\.js?$': './babelwrapper.js',
24 | },
25 | setupFilesAfterEnv: ['/.jestconfig/jest.setup.js'],
26 | testPathIgnorePatterns: ['/node_modules/', '/.history/'],
27 | },
28 | ],
29 | testResultsProcessor: 'jest-sonar-reporter',
30 | };
31 |
32 | module.exports = config;
33 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/components/adobe-fonts/header/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/cq/core/content/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/editor/src/js/components/caColorfield/__mocks__/colorfield.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/apps/content/core/src/test/resources/mocks/marketo/simplepage.json:
--------------------------------------------------------------------------------
1 | {
2 | "jcr:primaryType": "cq:Page",
3 | "jcr:content": {
4 | "jcr:primaryType": "cq:PageContent",
5 | "jcr:title": "Simple Page",
6 | "some": {
7 | "jcr:primaryType": "nt:unstructured",
8 | "child": {
9 | "jcr:primaryType": "nt:unstructured"
10 | },
11 | "andAnother": {
12 | "jcr:primaryType": "nt:unstructured",
13 | "someProperty": "and its value"
14 | },
15 | "andOneMatching": {
16 | "jcr:primaryType": "nt:unstructured",
17 | "sling:resourceType": "dx/content/components/marketo"
18 | },
19 | "andAReference": {
20 | "jcr:primaryType": "nt:unstructured",
21 | "jcr:description": "crappy reference node just to mock reference call",
22 | "appBannerPath": "/content/dx/us/en/somePageWithMarketo/jcr:content/some/banner"
23 | },
24 | "banner": {
25 | "jcr:primaryType": "nt:unstructured",
26 | "jcr:content": {
27 | "jcr:primaryType": "nt:unstructured"
28 | }
29 | }
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/author/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/config/manager/ColumnViewDataSource.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | package com.adobe.dx.admin.config.manager;
17 |
18 | import java.util.List;
19 |
20 | import org.osgi.annotation.versioning.ProviderType;
21 |
22 | @ProviderType
23 | public interface ColumnViewDataSource {
24 | List getItems();
25 | }
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/configs/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/utils/service/CloudConfigReader.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 |
17 | package com.adobe.dx.utils.service;
18 |
19 | import org.jetbrains.annotations.NotNull;
20 |
21 | public interface CloudConfigReader {
22 |
23 | T getContextAwareCloudConfigRes(@NotNull String resourcePath, String configName, Class type);
24 | }
25 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/editor/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
22 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/reactumd/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/registry/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/clientlibs/configs/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/author/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/publish/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/configs/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/clientlibs/editor/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/src/js/ConfigManager/utils/csrf.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | const GRANITE_CSRF_ENDPOINT = '/libs/granite/csrf/token.json';
17 |
18 | async function getCsrf() {
19 | return fetch(GRANITE_CSRF_ENDPOINT)
20 | .then((res) => {
21 | return res.json();
22 | })
23 | .catch((err) => {
24 | // eslint-disable-next-line no-console
25 | console.log('Error: ', err);
26 | });
27 | }
28 |
29 | export default getCsrf;
30 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/clientlibs/marketoAuthor/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/clientlibs/marketoPublish/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
21 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/src/js/app.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // Ignore for code coverage
18 | /* istanbul ignore file */
19 |
20 | import React from 'react';
21 | import ReactDOM from 'react-dom';
22 | import ConfigManager from './ConfigManager';
23 |
24 | const admin = document.getElementById('dx-ContentFrame');
25 | if (admin) {
26 | const props = {
27 | dataSourcePath: admin.dataset.columnviewDatasource,
28 | };
29 | ReactDOM.render(, admin);
30 | }
31 |
--------------------------------------------------------------------------------
/apps/docs/content/jcr_root/content/dx-docs/us/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
9 |
12 |
15 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/responsive/ResponsiveConfiguration.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | package com.adobe.dx.responsive;
17 |
18 | import org.apache.sling.caconfig.annotation.Configuration;
19 |
20 | @Configuration(label="Responsive Configuration", description = "sets the responsive behaviour")
21 | public @interface ResponsiveConfiguration {
22 | Breakpoint[] breakpoints();
23 | }
24 |
--------------------------------------------------------------------------------
/bundles/testing/src/main/java/com/adobe/dx/testing/AbstractOakTest.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | package com.adobe.dx.testing;
17 |
18 | import org.apache.sling.testing.mock.sling.ResourceResolverType;
19 |
20 | public class AbstractOakTest extends AbstractTest {
21 | @Override
22 | protected ResourceResolverType getType() {
23 | return ResourceResolverType.JCR_OAK;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/apps/admin/app/.jestconfig/jest.setup.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import '@testing-library/jest-dom';
18 | import Enzyme from 'enzyme';
19 | import Adapter from 'enzyme-adapter-react-16';
20 |
21 | Enzyme.configure({ adapter: new Adapter() });
22 |
23 | // Hide React Warnings for Spectrum Components
24 | const originalWarn = console.warn.bind(console.warn);
25 |
26 | beforeAll(() => {
27 | console.warn = (msg) => !msg.toString().includes('react') && originalWarn(msg);
28 | });
29 |
30 | afterAll(() => {
31 | console.warn = originalWarn;
32 | });
33 |
--------------------------------------------------------------------------------
/apps/content/app/.jestconfig/jest.setup.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import '@testing-library/jest-dom';
18 | import Enzyme from 'enzyme';
19 | import Adapter from 'enzyme-adapter-react-16';
20 |
21 | Enzyme.configure({ adapter: new Adapter() });
22 |
23 | // Hide React Warnings for Spectrum Components
24 | const originalWarn = console.warn.bind(console.warn);
25 |
26 | beforeAll(() => {
27 | console.warn = (msg) => !msg.toString().includes('react') && originalWarn(msg);
28 | });
29 |
30 | afterAll(() => {
31 | console.warn = originalWarn;
32 | });
33 |
--------------------------------------------------------------------------------
/apps/structure/app/.jestconfig/jest.setup.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import '@testing-library/jest-dom';
18 | import Enzyme from 'enzyme';
19 | import Adapter from 'enzyme-adapter-react-16';
20 |
21 | Enzyme.configure({ adapter: new Adapter() });
22 |
23 | // Hide React Warnings for Spectrum Components
24 | const originalWarn = console.warn.bind(console.warn);
25 |
26 | beforeAll(() => {
27 | console.warn = (msg) => !msg.toString().includes('react') && originalWarn(msg);
28 | });
29 |
30 | afterAll(() => {
31 | console.warn = originalWarn;
32 | });
33 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/src/js/ConfigManager/utils/delete.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import getCsrf from './csrf';
18 |
19 | async function deleteResource(path) {
20 | const formData = new FormData();
21 | formData.append(':operation', 'delete');
22 |
23 | const csrf = await getCsrf();
24 |
25 | return fetch(path, {
26 | method: 'POST',
27 | credentials: 'same-origin',
28 | headers: { 'CSRF-Token': csrf.token },
29 | body: formData,
30 | });
31 | }
32 |
33 | export default deleteResource;
34 |
--------------------------------------------------------------------------------
/.github/workflows/pr.yml:
--------------------------------------------------------------------------------
1 | #Copyright 2020 Adobe. All rights reserved.
2 | #This file is licensed to you under the Apache License, Version 2.0 (the "License");
3 | #you may not use this file except in compliance with the License. You may obtain a copy
4 | #of the License at http://www.apache.org/licenses/LICENSE-2.0
5 |
6 | #Unless required by applicable law or agreed to in writing, software distributed under
7 | #the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
8 | #OF ANY KIND, either express or implied. See the License for the specific language
9 | #governing permissions and limitations under the License.
10 |
11 | name: Build
12 |
13 | on: pull_request
14 |
15 | jobs:
16 |
17 | test:
18 | name: Test - Units & Integrations
19 | runs-on: ubuntu-latest
20 | steps:
21 | - uses: actions/checkout@v2
22 | - uses: actions/setup-java@v1
23 | with:
24 | java-version: '8'
25 | java-package: jdk
26 | - name: maven clean install
27 | env:
28 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 | run: |
30 | echo start simple maven build
31 | mvn -B --no-transfer-progress -s settings.xml -Pjacoco-report
32 |
--------------------------------------------------------------------------------
/webpack-scripts/stats.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2019 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | module.exports = {
18 | cached: false,
19 | cachedAssets: false,
20 | children: false,
21 | chunks: false,
22 | chunkModules: false,
23 | chunkOrigins: false,
24 | colors: true,
25 | depth: false,
26 | entrypoints: false,
27 | hash: false,
28 | maxModules: 0,
29 | modules: false,
30 | performance: false,
31 | providedExports: false,
32 | publicPath: false,
33 | reasons: false,
34 | source: false,
35 | usedExports: false,
36 | version: false,
37 | timings: true,
38 | errors: true,
39 | errorDetails: true,
40 | warnings: true,
41 | };
42 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/editor/src/less/dialogs/all.less:
--------------------------------------------------------------------------------
1 | .dx-Authoring--twoColumn {
2 | display: flex;
3 | width: auto;
4 |
5 | > div {
6 | flex: 1 1 50%;
7 |
8 | // Prevent un-intended effects of flex on non-single.
9 | &.coral-Form-fieldwrapper--singleline {
10 | display: flex;
11 |
12 | .coral3-Checkbox,
13 | .coral-Form-fieldinfo.coral3-Icon {
14 | align-self: flex-end;
15 | padding-bottom: 1.125rem;
16 | }
17 |
18 | .coral-Form-fieldinfo.coral3-Icon {
19 | padding-bottom: 0.5rem;
20 | }
21 |
22 | .coral3-Tooltip--arrowRight:after {
23 | top: 0.875rem;
24 | }
25 | }
26 |
27 | &.coral-Form-fieldwrapper {
28 | .coral3-Tooltip--arrowLeft {
29 | left: -30px !important;
30 | width: 100%;
31 | }
32 | }
33 |
34 | &:first-child {
35 | margin-right: 0.625rem;
36 | }
37 |
38 | &:last-child {
39 | margin-left: 0.625rem;
40 | }
41 | }
42 |
43 | &.dx-Authoring--spaceBetween {
44 | justify-content: space-between;
45 | }
46 | }
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/config/fonts/Settings.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | package com.adobe.dx.admin.config.fonts;
17 |
18 | import org.osgi.annotation.versioning.ProviderType;
19 |
20 | import com.drew.lang.annotations.NotNull;
21 | import com.drew.lang.annotations.Nullable;
22 |
23 | @ProviderType
24 | public interface Settings {
25 |
26 | @Nullable
27 | String getId();
28 |
29 | @NotNull
30 | String getEmbedType();
31 |
32 | @NotNull
33 | String getUrl();
34 | }
35 |
--------------------------------------------------------------------------------
/apps/admin/core/src/test/resources/OSGI-INF/com.adobe.dx.admin.authorvh.AuthorVh.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/editor/src/less/dialogs/flex.less:
--------------------------------------------------------------------------------
1 | .cq-Dialog.cq-dialog-floating[trackingfeature="aem:sites:components:dialogs:dx-structure:flex:v1"] {
2 |
3 | form[coral-dialog-size] {
4 | min-width: 760px;
5 | height: 700px;
6 | overflow-y: scroll;
7 | }
8 |
9 | coral-tabview[orientation="vertical"] {
10 | position: relative;
11 | padding-top: 30px;
12 | min-height: 418px;
13 |
14 | > coral-tablist {
15 | min-width: 180px;
16 | }
17 |
18 | &:after {
19 | content: '';
20 | top: 0;
21 | left: 0;
22 | width: 160px;
23 | position: absolute;
24 | background-color: #EFEFEF;
25 | bottom: 0;
26 | z-index: -1;
27 | }
28 | }
29 |
30 | .coral-Form-fieldset:first-of-type .coral-Form-fieldset-legend {
31 | margin-top: 0px;
32 | }
33 |
34 | .dx-Spacing--twoColumn {
35 | display: flex;
36 |
37 | .dx-Spacing--column.coral-Form-fieldset {
38 | flex: 1 1 1%;
39 | max-width: 100%;
40 |
41 | .coral-Form-fieldset-legend {
42 | margin-top: 0px;
43 | }
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/apps/docs/content/jcr_root/conf/dx-docs/settings/wcm/template-types/base-page/structure/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
8 |
12 |
13 |
14 |
18 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/src/js/ConfigManager/data/columnItem.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | import React from 'react';
17 |
18 | import Settings from '@react/react-spectrum/Icon/Settings';
19 | import Folder from '@react/react-spectrum/Icon/Folder';
20 |
21 | const CLASS_NAME = 'dx-Icon dx-Icon--ColumnItem';
22 |
23 | const columnItem = (item) => {
24 | let iconType = ;
25 | if (item.iconType === 'folder') {
26 | iconType = ;
27 | }
28 | return (
29 | <>
30 | {iconType}
31 | {item.label}
32 | >
33 | );
34 | };
35 |
36 | export default columnItem;
37 |
--------------------------------------------------------------------------------
/apps/content/core/src/main/java/com/adobe/dx/content/marketo/service/MarketoFormData.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 |
17 | package com.adobe.dx.content.marketo.service;
18 |
19 | public interface MarketoFormData {
20 |
21 | /**
22 | * Get the Marketo Form Name
23 | *
24 | * @return Form Name
25 | */
26 | String getName();
27 |
28 | /**
29 | * Get the Marketo Form Id
30 | * @return Form Id
31 | */
32 | int getId();
33 |
34 | /**
35 | * Get the Marketo Form locale
36 | * @return Form locale
37 | */
38 | String getLocale();
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/apps/docs/content/jcr_root/conf/dx-docs/settings/wcm/templates/content-page-template/structure/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
9 |
13 |
14 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/config/fonts/Tag.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2019 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | package com.adobe.dx.admin.config.fonts;
17 |
18 | import com.drew.lang.annotations.NotNull;
19 | import com.drew.lang.annotations.Nullable;
20 |
21 | import org.osgi.annotation.versioning.ProviderType;
22 |
23 | /**
24 | * Defines the {@code ScriptTag} Sling Model used for the
25 | * {@code cq/dtm-reactor/components/scripttag} component.
26 | */
27 | @ProviderType
28 | public interface Tag {
29 |
30 | @Nullable
31 | String getId();
32 |
33 | @NotNull
34 | String getEmbedType();
35 |
36 | @NotNull
37 | String getUrl();
38 | }
39 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/components/flex/_cq_icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
27 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/author/src/js/utils/__mocks__/vh.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
21 |
i1
22 |
i2
23 |
i3
24 |
i4
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/apps/admin/core/src/main/java/com/adobe/dx/admin/rendercondition/RenderConditionConfiguration.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | package com.adobe.dx.admin.rendercondition;
17 |
18 | import org.apache.sling.caconfig.annotation.Configuration;
19 | import org.apache.sling.caconfig.annotation.Property;
20 |
21 | @Configuration(label="Render Condition Configuration", description="Holds configuration for render conditions")
22 | public @interface RenderConditionConfiguration {
23 |
24 | @Property(label="passthrough groups", description = "list of groups for which render condition should always be true")
25 | String[] passthroughGroups() default { "template-authors", "administrators"};
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/apps/content/core/src/main/java/com/adobe/dx/content/marketo/service/MarketoService.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 |
17 | package com.adobe.dx.content.marketo.service;
18 |
19 | import java.util.List;
20 |
21 | import org.jetbrains.annotations.NotNull;
22 |
23 | public interface MarketoService {
24 |
25 | /**
26 | * Based on the content path being edited, this service finds the context aware marketo configuration
27 | * executes Marketo Rest Service to get the marketo forms
28 | * @param resourcePath - Content Path of resource being edited.
29 | * @return Marketo Forms
30 | */
31 | List getMarketoForms(@NotNull String resourcePath);
32 | }
33 |
--------------------------------------------------------------------------------
/apps/structure/app/jcr_root/apps/dx/structure/components/adobe-fonts/header/header.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
20 |
21 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/.github/workflows/push.yml:
--------------------------------------------------------------------------------
1 | #Copyright 2020 Adobe. All rights reserved.
2 | #This file is licensed to you under the Apache License, Version 2.0 (the "License");
3 | #you may not use this file except in compliance with the License. You may obtain a copy
4 | #of the License at http://www.apache.org/licenses/LICENSE-2.0
5 |
6 | #Unless required by applicable law or agreed to in writing, software distributed under
7 | #the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
8 | #OF ANY KIND, either express or implied. See the License for the specific language
9 | #governing permissions and limitations under the License.
10 |
11 | name: CI/CD
12 |
13 | on: push
14 |
15 | jobs:
16 |
17 | sonar:
18 | name: Test && SonarCloud Scan
19 | runs-on: ubuntu-latest
20 |
21 | steps:
22 | - uses: actions/checkout@v2
23 | - id: log
24 | run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)"
25 | - if: "contains(steps.log.outputs.message, '@releng')"
26 | run: echo "exiting...this is a CI commit" && exit 1
27 | - uses: actions/setup-java@v1
28 | with:
29 | java-version: '8'
30 | java-package: jdk
31 | - name: sonar
32 | env:
33 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 | run: |
35 | echo start maven sonar analysis...
36 | mvn -B --no-transfer-progress -s settings.xml -U clean verify sonar:sonar -Psonar -Pjacoco-report -Dsonar.login=${{ secrets.SONAR_TOKEN }}
37 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/src/js/ConfigManager/utils/__tests__/csrf.test.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { waitFor } from '@testing-library/dom';
18 | import getCsrf from '../csrf';
19 |
20 | window.fetch = jest.fn(() =>
21 | Promise.resolve({
22 | json: () => Promise.resolve({ token: 'csrf_token' }),
23 | })
24 | );
25 |
26 | test('should fetch a token', async () => {
27 | const csrfResponse = await getCsrf();
28 | await waitFor(() => expect(fetch.mock.calls[0][0]).toBe('/libs/granite/csrf/token.json'));
29 | expect(csrfResponse).toStrictEqual({ token: 'csrf_token' });
30 | });
31 | test('should error for bad fetch', async () => {
32 | fetch.mockImplementationOnce(() => Promise.reject('API is down'));
33 | const csrfResponse = await getCsrf();
34 | expect(csrfResponse).toBeUndefined();
35 | });
36 |
--------------------------------------------------------------------------------
/apps/docs/content/jcr_root/conf/dx-docs/_sling_configs/com.adobe.dx.responsive.ResponsiveConfiguration/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
12 |
20 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/apps/docs/content/jcr_root/conf/dx-docs/_sling_configs/com.adobe.dx.styleguide.StyleGuide/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
10 |
14 |
18 |
19 |
20 |
24 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/inlinestyle/InlineStyleService.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | package com.adobe.dx.inlinestyle;
17 |
18 | import org.apache.sling.api.SlingHttpServletRequest;
19 | import org.jetbrains.annotations.Nullable;
20 |
21 | public interface InlineStyleService {
22 |
23 | /**
24 | * Computes a list of CSS declarations relatives of the given request. If an id is provided,
25 | * encapsulate those declarations in that id rule (for nested usage).
26 | *
27 | * @param id optional ID to encapsulate declarations with
28 | * @param request current request
29 | * @return declaration set, or local rule
30 | */
31 | String getInlineStyle(@Nullable String id, SlingHttpServletRequest request);
32 | }
33 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/styleguide/StyleGuide.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 | package com.adobe.dx.styleguide;
17 |
18 | import org.apache.sling.caconfig.annotation.Configuration;
19 | import org.apache.sling.caconfig.annotation.Property;
20 |
21 | @Configuration(label = "Style Guide", description = "holds all style guide configurations")
22 | public @interface StyleGuide {
23 | /**
24 | * @return all gradients configured
25 | */
26 | @Property(label="gradients", description = "get all gradients configured")
27 | StyleGuideItem[] gradients();
28 |
29 | /**
30 | * @return all colors configured
31 | */
32 | @Property(label="colors", description = "get all colors configured")
33 | StyleGuideItem[] colors();
34 | }
35 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/components/configmanager/configmanager.html:
--------------------------------------------------------------------------------
1 |
16 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/content/config-manager/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
23 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/apps/admin/core/src/test/resources/OSGI-INF/com.adobe.dx.admin.responsive.internal.ResponsiveInclude.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
27 |
28 |
--------------------------------------------------------------------------------
/bundles/core/src/main/java/com/adobe/dx/domtagging/AttributeWorker.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 |
17 | package com.adobe.dx.domtagging;
18 |
19 | import com.adobe.dx.utils.Worker;
20 |
21 | import java.util.Collection;
22 | import java.util.Map;
23 |
24 | import org.apache.sling.api.SlingHttpServletRequest;
25 |
26 | public interface AttributeWorker extends Worker {
27 |
28 | /**
29 | * @param request current component request
30 | * @return map of attributes from that worker
31 | */
32 | Map getAttributes(SlingHttpServletRequest request);
33 |
34 | /**
35 | * @param request current component request
36 | * @return collection of classes from that worker
37 | */
38 | Collection getClasses(SlingHttpServletRequest request);
39 | }
40 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/cq/core/content/nav/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/editor/src/js/components/caColorfield/__tests__/CaColorfield.test.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | import colorfieldMock from '../__mocks__/colorfield.html';
17 | import { handleChange, getColorfieldInput } from '../index';
18 |
19 | document.body.innerHTML = colorfieldMock;
20 |
21 | test('should use selected value', () => {
22 | const colorInput = document.querySelector('#selectedValue');
23 | colorInput.value = '#FE0000';
24 | const val = handleChange(colorInput);
25 | expect(val).toBe('red');
26 | });
27 |
28 | test('should use custom value', () => {
29 | const colorInput = document.querySelector('#customValue');
30 | colorInput.value = '#FE0000';
31 | const val = handleChange(colorInput);
32 | expect(val).toBe('#FE0000');
33 | });
34 |
35 | test('get colorfield from parent', () => {
36 | const val = getColorfieldInput(document);
37 | expect(val).toBeTruthy();
38 | });
39 |
--------------------------------------------------------------------------------
/apps/admin/app/jcr_root/apps/dx/admin/clientlibs/manager/src/js/ConfigManager/utils/__tests__/delete.test.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2020 Adobe
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { waitFor } from '@testing-library/dom';
18 | import getCsrf from '../csrf';
19 | import deleteResource from '../delete';
20 |
21 | jest.mock('../../utils/csrf');
22 | getCsrf.mockImplementation(() => ({ token: 'heres_a_token' }));
23 |
24 | window.fetch = jest.fn();
25 |
26 | window.FormData = class FormData {
27 | constructor() {
28 | this.values = {};
29 | }
30 |
31 | append = (name, val) => {
32 | this.values[name] = val;
33 | };
34 | };
35 |
36 | test('should post a form with delete operation', async () => {
37 | await deleteResource('my/path/');
38 | await waitFor(() => expect(fetch.mock.calls[0][1].headers['CSRF-Token']).toBe('heres_a_token'));
39 | await waitFor(() =>
40 | expect(fetch.mock.calls[0][1].body.values).toStrictEqual({ ':operation': 'delete' })
41 | );
42 | });
43 |
--------------------------------------------------------------------------------
/apps/content/app/jcr_root/apps/dx/content/components/marketo/_cq_dialog/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
13 |
14 |
17 |
18 |
23 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/apps/content/core/src/main/java/com/adobe/dx/content/marketo/service/MarketoClientService.java:
--------------------------------------------------------------------------------
1 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 | ~ Copyright 2020 Adobe
3 | ~
4 | ~ Licensed under the Apache License, Version 2.0 (the "License");
5 | ~ you may not use this file except in compliance with the License.
6 | ~ You may obtain a copy of the License at
7 | ~
8 | ~ http://www.apache.org/licenses/LICENSE-2.0
9 | ~
10 | ~ Unless required by applicable law or agreed to in writing, software
11 | ~ distributed under the License is distributed on an "AS IS" BASIS,
12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ~ See the License for the specific language governing permissions and
14 | ~ limitations under the License.
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
16 |
17 | package com.adobe.dx.content.marketo.service;
18 |
19 | import java.util.Calendar;
20 | import java.util.List;
21 |
22 | public interface MarketoClientService {
23 |
24 | MarketoAccessToken getAuthToken(String baseUrl, String clientId, String clientSecret);
25 |
26 | MarketoForms getMarketoForms(String baseUrl, String authToken);
27 |
28 | interface MarketoAccessToken {
29 |
30 | String getAccessToken();
31 |
32 | Calendar getValidUntil();
33 | }
34 |
35 | interface MarketoForms {
36 |
37 | boolean isSuccess();
38 |
39 | boolean isTokenInvalid();
40 |
41 | List getResult();
42 |
43 | String getErrorMessage();
44 | }
45 | }
46 |
--------------------------------------------------------------------------------