Skip to content

Commit 4b4812c

Browse files
committed
github commit
1 parent 93f1ae9 commit 4b4812c

File tree

1,514 files changed

+168971
-48
lines changed

Some content is hidden

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

1,514 files changed

+168971
-48
lines changed

appinfo/app.php

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
11
<?php
22

3-
\OC::$server->getNavigationManager()->add(function () {
4-
$urlGenerator = \OC::$server->getURLGenerator();
5-
return [
6-
// the string under which your app will be referenced in Nextcloud
7-
'id' => 'timetracker',
83

9-
// sorting weight for the navigation. The higher the number, the higher
10-
// will it be listed in the navigation
11-
'order' => 10,
12-
13-
// the route that will be shown on startup
14-
'href' => $urlGenerator->linkToRoute('timetracker.page.index'),
15-
16-
// the icon that will be shown in the navigation
17-
// this file needs to exist in img/
18-
'icon' => $urlGenerator->imagePath('timetracker', 'app.svg'),
19-
20-
// the title of your application. This will be used in the
21-
// navigation or on the settings page of your app
22-
'name' => \OC::$server->getL10N('timetracker')->t('Time Tracker'),
23-
];
24-
});
25-
26-
// execute OCA\MyApp\BackgroundJob\Task::run when cron is called
27-
//\OC::$server->getJobList()->add('OCA\MyApp\BackgroundJob\Task');
28-
29-
// execute OCA\MyApp\Hooks\User::deleteUser before a user is being deleted
30-
//\OCP\Util::connectHook('OC_User', 'pre_deleteUser', 'OCA\MyApp\Hooks\User', 'deleteUser');
4+
$app = new \OCA\TimeTracker\AppInfo\Application();

appinfo/database.xml

Lines changed: 364 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,364 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<database>
3+
<name>*dbname*</name>
4+
<create>true</create>
5+
<overwrite>false</overwrite>
6+
<charset>utf8</charset>
7+
<table>
8+
<name>*dbprefix*timetracker_client</name>
9+
10+
<declaration>
11+
<field>
12+
<name>id</name>
13+
<type>integer</type>
14+
<default>0</default>
15+
<notnull>true</notnull>
16+
<autoincrement>1</autoincrement>
17+
<length>4</length>
18+
</field>
19+
<field>
20+
<name>name</name>
21+
<type>text</type>
22+
<notnull>true</notnull>
23+
<length>64</length>
24+
</field>
25+
<field>
26+
<name>created_at</name>
27+
<type>integer</type>
28+
<notnull>true</notnull>
29+
<length>4</length>
30+
</field>
31+
</declaration>
32+
</table>
33+
34+
35+
<table>
36+
<name>*dbprefix*timetracker_project</name>
37+
38+
<declaration>
39+
<field>
40+
<name>id</name>
41+
<type>integer</type>
42+
<default>0</default>
43+
<notnull>true</notnull>
44+
<autoincrement>1</autoincrement>
45+
<length>4</length>
46+
</field>
47+
<field>
48+
<name>name</name>
49+
<type>text</type>
50+
<notnull>true</notnull>
51+
<length>64</length>
52+
</field>
53+
<field>
54+
<name>client_id</name>
55+
<type>integer</type>
56+
<notnull>false</notnull>
57+
<length>4</length>
58+
</field>
59+
<field>
60+
<name>created_by_user_uid</name>
61+
<type>text</type>
62+
<notnull>true</notnull>
63+
<length>128</length>
64+
</field>
65+
<field>
66+
<name>locked</name>
67+
<type>integer</type>
68+
<notnull>false</notnull>
69+
<default>0</default>
70+
<length>4</length>
71+
</field>
72+
<field>
73+
<name>created_at</name>
74+
<type>integer</type>
75+
<notnull>true</notnull>
76+
<length>4</length>
77+
</field>
78+
</declaration>
79+
</table>
80+
<table>
81+
<name>*dbprefix*timetracker_user_to_project</name>
82+
83+
<declaration>
84+
<field>
85+
<name>id</name>
86+
<type>integer</type>
87+
<default>0</default>
88+
<notnull>true</notnull>
89+
<autoincrement>1</autoincrement>
90+
<length>4</length>
91+
</field>
92+
<field>
93+
<name>user_uid</name>
94+
<type>text</type>
95+
<notnull>true</notnull>
96+
<length>128</length>
97+
</field>
98+
<field>
99+
<name>project_id</name>
100+
<type>integer</type>
101+
<notnull>true</notnull>
102+
<length>4</length>
103+
</field>
104+
<field>
105+
<name>admin</name>
106+
<type>integer</type>
107+
<notnull>true</notnull>
108+
<length>4</length>
109+
<default>0</default>
110+
</field>
111+
<field>
112+
<name>access</name>
113+
<type>integer</type>
114+
<notnull>true</notnull>
115+
<length>4</length>
116+
<default>1</default>
117+
</field>
118+
<field>
119+
<name>created_at</name>
120+
<type>integer</type>
121+
<notnull>true</notnull>
122+
<length>4</length>
123+
</field>
124+
</declaration>
125+
</table>
126+
127+
<table>
128+
<name>*dbprefix*timetracker_user_to_client</name>
129+
130+
<declaration>
131+
<field>
132+
<name>id</name>
133+
<type>integer</type>
134+
<default>0</default>
135+
<notnull>true</notnull>
136+
<autoincrement>1</autoincrement>
137+
<length>4</length>
138+
</field>
139+
<field>
140+
<name>user_uid</name>
141+
<type>text</type>
142+
<notnull>true</notnull>
143+
<length>128</length>
144+
</field>
145+
<field>
146+
<name>client_id</name>
147+
<type>integer</type>
148+
<notnull>true</notnull>
149+
<length>4</length>
150+
</field>
151+
<field>
152+
<name>admin</name>
153+
<type>integer</type>
154+
<notnull>true</notnull>
155+
<length>4</length>
156+
<default>0</default>
157+
</field>
158+
<field>
159+
<name>access</name>
160+
<type>integer</type>
161+
<notnull>true</notnull>
162+
<length>4</length>
163+
<default>1</default>
164+
</field>
165+
<field>
166+
<name>created_at</name>
167+
<type>integer</type>
168+
<notnull>true</notnull>
169+
<length>4</length>
170+
</field>
171+
</declaration>
172+
</table>
173+
174+
175+
<table>
176+
<name>*dbprefix*timetracker_work_interval</name>
177+
<declaration>
178+
<field>
179+
<name>id</name>
180+
<type>integer</type>
181+
<default>0</default>
182+
<notnull>true</notnull>
183+
<autoincrement>1</autoincrement>
184+
<length>4</length>
185+
</field>
186+
<field>
187+
<name>name</name>
188+
<type>text</type>
189+
<notnull>true</notnull>
190+
<length>64</length>
191+
</field>
192+
<field>
193+
<name>project_id</name>
194+
<type>integer</type>
195+
<notnull>false</notnull>
196+
<length>4</length>
197+
</field>
198+
<field>
199+
<name>user_uid</name>
200+
<type>text</type>
201+
<notnull>true</notnull>
202+
<length>128</length>
203+
</field>
204+
<field>
205+
<name>start</name>
206+
<type>integer</type>
207+
<notnull>true</notnull>
208+
<length>4</length>
209+
</field>
210+
<field>
211+
<name>duration</name>
212+
<type>integer</type>
213+
<notnull>false</notnull>
214+
<length>4</length>
215+
</field>
216+
<field>
217+
<name>running</name>
218+
<type>integer</type>
219+
<notnull>true</notnull>
220+
<length>4</length>
221+
</field>
222+
</declaration>
223+
</table>
224+
225+
226+
<table>
227+
<name>*dbprefix*timetracker_tag</name>
228+
229+
<declaration>
230+
<field>
231+
<name>id</name>
232+
<type>integer</type>
233+
<default>0</default>
234+
<notnull>true</notnull>
235+
<autoincrement>1</autoincrement>
236+
<length>4</length>
237+
</field>
238+
<field>
239+
<name>name</name>
240+
<type>text</type>
241+
<notnull>true</notnull>
242+
<length>64</length>
243+
</field>
244+
<field>
245+
<name>user_uid</name>
246+
<type>text</type>
247+
<notnull>true</notnull>
248+
<length>128</length>
249+
</field>
250+
<field>
251+
<name>created_at</name>
252+
<type>integer</type>
253+
<notnull>true</notnull>
254+
<length>4</length>
255+
</field>
256+
</declaration>
257+
</table>
258+
259+
<table>
260+
<name>*dbprefix*timetracker_locked_project_allowed_tag</name>
261+
262+
<declaration>
263+
<field>
264+
<name>id</name>
265+
<type>integer</type>
266+
<default>0</default>
267+
<notnull>true</notnull>
268+
<autoincrement>1</autoincrement>
269+
<length>4</length>
270+
</field>
271+
272+
<field>
273+
<name>project_id</name>
274+
<type>integer</type>
275+
<notnull>false</notnull>
276+
<length>4</length>
277+
</field>
278+
279+
280+
<field>
281+
<name>tag_id</name>
282+
<type>integer</type>
283+
<notnull>true</notnull>
284+
<length>4</length>
285+
</field>
286+
287+
<field>
288+
<name>created_at</name>
289+
<type>integer</type>
290+
<notnull>true</notnull>
291+
<length>4</length>
292+
</field>
293+
</declaration>
294+
</table>
295+
296+
297+
<!-- <table>
298+
<name>*dbprefix*timetracker_user_to_tag</name>
299+
300+
<declaration>
301+
<field>
302+
<name>id</name>
303+
<type>integer</type>
304+
<default>0</default>
305+
<notnull>true</notnull>
306+
<autoincrement>1</autoincrement>
307+
<length>4</length>
308+
</field>
309+
<field>
310+
<name>user_uid</name>
311+
<type>text</type>
312+
<notnull>true</notnull>
313+
<length>128</length>
314+
</field>
315+
<field>
316+
<name>tag_id</name>
317+
<type>integer</type>
318+
<notnull>true</notnull>
319+
<length>4</length>
320+
</field>
321+
<field>
322+
<name>created_at</name>
323+
<type>integer</type>
324+
<notnull>true</notnull>
325+
<length>4</length>
326+
</field>
327+
</declaration>
328+
</table> -->
329+
330+
<table>
331+
<name>*dbprefix*timetracker_workinterval_to_tag</name>
332+
333+
<declaration>
334+
<field>
335+
<name>id</name>
336+
<type>integer</type>
337+
<default>0</default>
338+
<notnull>true</notnull>
339+
<autoincrement>1</autoincrement>
340+
<length>4</length>
341+
</field>
342+
<field>
343+
<name>work_interval_id</name>
344+
<type>integer</type>
345+
<notnull>true</notnull>
346+
<length>4</length>
347+
</field>
348+
<field>
349+
<name>tag_id</name>
350+
<type>integer</type>
351+
<notnull>true</notnull>
352+
<length>4</length>
353+
</field>
354+
<field>
355+
<name>created_at</name>
356+
<type>integer</type>
357+
<notnull>true</notnull>
358+
<length>4</length>
359+
</field>
360+
</declaration>
361+
</table>
362+
363+
364+
</database>

0 commit comments

Comments
 (0)