22 | {activeProject?.path === `${baseProjectPath}/temp` && (
23 |
24 | You are using code that has been imported from an external source.
25 | Exercise caution with the contract code before executing it.
26 |
27 | )}
28 |
29 | Below options will be used to call receiver and call getter method on
30 | contract after the contract is deployed.
31 |
32 |
33 |
Getters ({abi.getters.length})
34 | {abi.getters.length === 0 &&
No Getters Found
}
35 |
36 | {abi.getters.map((getter) => (
37 |
45 | ))}
46 |
47 |
Receivers ({abi.setters.length})
48 | {abi.setters.length === 0 &&
No Receivers Found
}
49 | {abi.setters.map((setter) => (
50 |
58 | ))}
59 |
60 | );
61 | };
62 |
63 | export default TactContractInteraction;
64 |
--------------------------------------------------------------------------------
/src/components/git/ManageGit/ManageGit.module.scss:
--------------------------------------------------------------------------------
1 | .root {
2 | .collapse,
3 | .collapsePanel {
4 | user-select: none;
5 | }
6 | .collapsePanel {
7 | > div {
8 | padding: 0.3125rem 0.75rem !important;
9 | }
10 | .collapseHeader {
11 | display: flex;
12 | align-items: center;
13 | justify-content: space-between;
14 | position: relative;
15 | }
16 | .action {
17 | display: inline-flex;
18 | cursor: pointer;
19 | padding: 0.2rem;
20 | background-color: var(--light-grey);
21 | border-radius: 50%;
22 | position: absolute;
23 | right: -0.5rem;
24 | &:hover {
25 | background-color: var(--light-grey);
26 | }
27 | }
28 | .fileItem {
29 | opacity: 0.9;
30 | display: flex;
31 | align-items: center;
32 | gap: 0.5rem;
33 | justify-content: space-between;
34 | position: relative;
35 | .status {
36 | font-size: 0.8em;
37 | }
38 | &:hover {
39 | .action {
40 | visibility: visible;
41 | }
42 | .status {
43 | visibility: hidden;
44 | }
45 | }
46 | .fileDetails {
47 | text-overflow: ellipsis;
48 | overflow: hidden;
49 | white-space: nowrap;
50 | }
51 | .action {
52 | visibility: hidden;
53 | &:hover {
54 | visibility: visible;
55 | }
56 | }
57 | }
58 | .filePath {
59 | opacity: 0.6;
60 | font-size: 0.8rem;
61 | }
62 | ul {
63 | padding: 0;
64 | list-style-type: none;
65 | li {
66 | margin: 0.4rem 0;
67 | }
68 | }
69 | div[class*='ant-collapse-content-box'] {
70 | padding: 0;
71 | }
72 | div[class*='ant-collapse-header'] {
73 | font-weight: 600;
74 | }
75 | div[class*='ant-collapse-expand-icon'] {
76 | padding-inline-end: 5px;
77 | }
78 | }
79 | .commitItem {
80 | padding: 0.5rem 0;
81 | overflow-wrap: break-word;
82 |
83 | &:not(:last-child) {
84 | border-bottom: 1px solid var(--grey);
85 | }
86 | .commitAuthor {
87 | opacity: 0.6;
88 | font-size: 0.7rem;
89 | }
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/src/components/workspace/WorkspaceSidebar/WorkspaceSidebar.module.scss:
--------------------------------------------------------------------------------
1 | .container {
2 | background: var(--black-500);
3 | height: 100%;
4 | display: flex;
5 | flex-direction: column;
6 | justify-content: space-between;
7 |
8 | .brandLogo {
9 | padding: 1.4rem 1.2rem;
10 | display: flex;
11 | align-items: center;
12 | justify-content: center;
13 | pointer-events: none;
14 | img {
15 | width: 100%;
16 | }
17 | }
18 | }
19 |
20 | .action {
21 | font-size: 1.8rem;
22 | padding: 0.5rem 0.1rem;
23 | margin: 0.5rem;
24 | cursor: pointer;
25 | opacity: 0.6;
26 | position: relative;
27 | color: var(--text-color);
28 | display: flex;
29 | user-select: none;
30 | display: flex;
31 | flex-direction: column;
32 | align-items: center;
33 | border-radius: 0.625rem;
34 |
35 | &.isActive,
36 | &:hover {
37 | opacity: 1;
38 | color: var(--primary);
39 | &::before {
40 | display: block;
41 | }
42 | }
43 | &.disabled {
44 | cursor: not-allowed;
45 | }
46 | }
47 | .themeSwitch {
48 | display: flex;
49 | align-items: center;
50 | justify-content: center;
51 | margin: 0 auto 1rem auto;
52 | align-items: center;
53 | border-radius: 50%;
54 | height: 3rem;
55 | width: 3rem;
56 |
57 | > svg {
58 | width: 1.4rem;
59 | height: 1.4rem;
60 | }
61 | }
62 |
63 | .description {
64 | font-size: 0.8rem;
65 | opacity: 0.7;
66 | }
67 |
68 | .icon {
69 | width: 1.4rem;
70 | span {
71 | font-size: 0.8rem;
72 | display: inline-block;
73 | margin-top: 5px;
74 | text-align: center;
75 | }
76 | }
77 |
78 | .settingItem {
79 | margin: 0 !important;
80 | padding: 1rem 0;
81 | &:not(:last-child) {
82 | border-bottom: 1px solid rgba(255, 255, 255, 0.2);
83 | [data-theme='light'] & {
84 | border-bottom: 1px solid rgba(0, 0, 0, 0.2);
85 | }
86 | }
87 | > div {
88 | margin: 0 !important;
89 | }
90 | }
91 |
92 | .resetAmount {
93 | display: flex;
94 | align-items: center;
95 | padding: 0 0.5rem;
96 | height: 100%;
97 | cursor: pointer;
98 | position: absolute;
99 | right: 0;
100 | &:hover {
101 | background-color: rgba(177, 213, 221, 0.2);
102 | }
103 | }
104 |
--------------------------------------------------------------------------------
/src/components/workspace/tree/FileTree/ItemActions.tsx:
--------------------------------------------------------------------------------
1 | import AppIcon, { AppIconType } from '@/components/ui/icon';
2 | import cn from 'clsx';
3 | import React, { FC } from 'react';
4 |
5 | import { Tooltip } from 'antd';
6 | import s from './FileTree.module.scss';
7 |
8 | export type actionsTypes = 'Edit' | 'NewFile' | 'NewFolder' | 'Close';
9 |
10 | interface Props {
11 | className?: string;
12 | allowedActions: actionsTypes[];
13 | onRename?: () => void;
14 | onNewFile?: () => void;
15 | onNewDirectory?: () => void;
16 | onDelete?: () => void;
17 | onShare?: () => void;
18 | }
19 |
20 | const ItemAction: FC