Skip to content

Commit 7ddd668

Browse files
committed
OA加速化ワークフロー_デモ版
1 parent ea7a3ed commit 7ddd668

76 files changed

Lines changed: 2912 additions & 81 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/adapters/workflow-config.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import DS from 'ember-data';
2+
import config from 'ember-get-config';
3+
import OsfAdapter from './osf-adapter';
4+
5+
const {
6+
OSF: {
7+
url: host,
8+
webApiNamespace: namespace,
9+
},
10+
} = config;
11+
12+
export default class WorkFlowConfigAdapter extends OsfAdapter {
13+
host = host.replace(/\/+$/, '');
14+
namespace = namespace;
15+
16+
buildURL(
17+
_: string | undefined,
18+
id: string | null,
19+
__: DS.Snapshot | null,
20+
___: string,
21+
____?: {},
22+
): string {
23+
const nodeUrl = super.buildURL('node', null, null, 'findRecord', {});
24+
const url = nodeUrl.replace(/\/nodes\/$/, '/project/');
25+
return `${url}${id}/workflow/config`;
26+
}
27+
}
28+
29+
declare module 'ember-data/types/registries/adapter' {
30+
export default interface AdapterRegistry {
31+
'workflow-config': WorkFlowConfigAdapter;
32+
} // eslint-disable-line semi
33+
}

app/guid-node/styles.scss

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
@media screen and (max-width: 768px) {
2+
.WorkFlow {
3+
margin: 0;
4+
padding: 0;
5+
}
6+
}
7+
8+
h4 {
9+
margin-top: 40px;
10+
}
11+
12+
.modal-overlay {
13+
position: fixed;
14+
top: 0;
15+
left: 0;
16+
width: 100%;
17+
height: 100%;
18+
background-color: rgba(0, 0, 0, 0.5);
19+
display: flex;
20+
justify-content: center;
21+
align-items: center;
22+
z-index: 9999;
23+
}
24+
25+
.workflow-dialog {
26+
background-color: #fff;
27+
padding: 20px;
28+
border-radius: 8px;
29+
width: 500px;
30+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
31+
position: relative;
32+
}
33+
34+
.tabs {
35+
margin-top: 60px;
36+
}
37+
38+
.tab-content {
39+
height: 400px;
40+
width: 100%;
41+
overflow-y: auto;
42+
overflow-x: auto;
43+
white-space: nowrap;
44+
}
45+
46+
.tab-pane {
47+
display: none;
48+
}
49+
50+
.tab-pane.active {
51+
display: block;
52+
}

0 commit comments

Comments
 (0)