Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFTSoftwareProject
MoodleDTA
Commits
348d8bed
Commit
348d8bed
authored
Oct 30, 2023
by
Lückemeyer
Browse files
added gpl v3 preamble required for moodle approval
parent
4996e97a
Pipeline
#8832
passed with stage
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dta.zip
View file @
348d8bed
No preview for this file type
dta/db/upgrade.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Upgrade code for install
...
...
@@ -17,17 +31,5 @@ defined('MOODLE_INTERNAL') || die();
function
xmldb_assignsubmission_dta_upgrade
(
$oldversion
)
{
global
$CFG
;
// Moodle v2.8.0 release upgrade line.
// Put any upgrade step following this.
// Moodle v2.9.0 release upgrade line.
// Put any upgrade step following this.
// Moodle v3.0.0 release upgrade line.
// Put any upgrade step following this.
// Moodle v3.1.0 release upgrade line.
// Put any upgrade step following this.
return
true
;
}
dta/lang/en/assignsubmission_dta.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component "assignsubmission_dta", language "en"
...
...
dta/lib.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file contains the moodle hooks for the submission DTA plugin
...
...
dta/locallib.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
defined
(
'MOODLE_INTERNAL'
)
||
die
();
...
...
dta/models/DtaResult.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
class
DtaResult
{
...
...
dta/settings.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file defines the admin settings for this plugin
...
...
dta/styles.css
View file @
348d8bed
/* Prevent word breaking in the grading table */
.dt
t
SubmissionSummary
{
.dt
a
SubmissionSummary
{
white-space
:
nowrap
;
}
.dt
t
SubmissionSummary
,
.dt
t
SubmissionDetails
{
.dt
a
SubmissionSummary
,
.dt
a
SubmissionDetails
{
margin-top
:
15px
;
}
/* empty div between summary and detail table */
.dt
t
Spacer
{
.dt
a
Spacer
{
margin-top
:
30px
;
}
...
...
@@ -17,7 +17,7 @@
* Layout for the Detail view
****************************************************************/
.dt
t
Table
{
.dt
a
Table
{
display
:
inline-block
;
max-width
:
100%
;
overflow
:
auto
;
...
...
@@ -27,48 +27,48 @@
overflow-x
:
hidden
;
}
.dt
t
TableHeaderRow
{
.dt
a
TableHeaderRow
{
font-weight
:
bold
;
color
:
white
!important
;
background-color
:
gray
!important
;
}
.dt
t
TableRow
{
.dt
a
TableRow
{
background-color
:
unset
!important
;
border-top
:
.05rem
solid
lightgray
;
}
.dt
t
TableHeaderRow
th
,
.dt
t
TableRow
td
{
.dt
a
TableHeaderRow
th
,
.dt
a
TableRow
td
{
padding
:
.9375em
1.25em
;
}
.dt
t
StacktraceDetails
{
.dt
a
StacktraceDetails
{
max-height
:
300px
;
max-width
:
70%
;
overflow
:
auto
;
}
.dt
t
ResultUnknown
{
.dt
a
ResultUnknown
{
border-left
:
10px
solid
gray
;
}
.dt
t
ResultSuccess
{
.dt
a
ResultSuccess
{
border-left
:
10px
solid
green
;
}
.dt
t
ResultFailure
{
.dt
a
ResultFailure
{
border-left
:
10px
solid
orange
;
}
.dt
t
ResultCompilationError
{
.dt
a
ResultCompilationError
{
border-left
:
10px
solid
red
;
}
.dt
t
TableRow
:hover
{
.dt
a
TableRow
:hover
{
background-color
:
lightgray
!important
;
}
.dt
t
TableSpacer
{
.dt
a
TableSpacer
{
border-bottom
:
2px
solid
darkgray
;
}
dta/utils/backend.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
class
DtaBackendUtils
{
...
...
dta/utils/database.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
class
DbUtils
{
...
...
dta/utils/view.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
class
ViewSubmissionUtils
{
...
...
dta/version.php
View file @
348d8bed
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file contains the version information for the onlinetext DTA plugin
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment