<!--
  - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  - SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
	<div class="actions__item" :class="{'colored': colored}" :style="{ backgroundColor: colored ? operation.color : 'transparent' }">
		<div class="icon" :class="operation.iconClass" :style="{ backgroundImage: operation.iconClass ? '' : `url(${operation.icon})` }" />
		<div class="actions__item__description">
			<h3>{{ operation.name }}</h3>
			<small>{{ operation.description }}</small>
			<NcButton v-if="colored">
				{{ t('workflowengine', 'Add new flow') }}
			</NcButton>
		</div>
		<div class="actions__item_options">
			<slot />
		</div>
	</div>
</template>

<script>
import NcButton from '@nextcloud/vue/components/NcButton'

export default {
	name: 'Operation',
	components: {
		NcButton,
	},
	props: {
		operation: {
			type: Object,
			required: true,
		},
		colored: {
			type: Boolean,
			default: true,
		},
	},
}
</script>

<style scoped lang="scss">
@use "./../styles/operation" as *;
</style>
V1_6_X'>V1_6_X</option>
<option value='V1_8_X'>V1_8_X</option>
<option value='ajdt_support'>ajdt_support</option>
<option value='antora'>antora</option>
<option value='bug356694'>bug356694</option>
<option value='bug433351'>bug433351</option>
<option value='conditionalThis'>conditionalThis</option>
<option value='dependabot/maven/com.thoughtworks.xstream-xstream-1.4.20'>dependabot/maven/com.thoughtworks.xstream-xstream-1.4.20</option>
<option value='dependabot/maven/commons-logging-commons-logging-1.2'>dependabot/maven/commons-logging-commons-logging-1.2</option>
<option value='dependabot/maven/org.apache.maven.plugins-maven-assembly-plugin-3.5.0'>dependabot/maven/org.apache.maven.plugins-maven-assembly-plugin-3.5.0</option>
<option value='dependabot/maven/org.apache.maven.plugins-maven-clean-plugin-3.3.1'>dependabot/maven/org.apache.maven.plugins-maven-clean-plugin-3.3.1</option>
<option value='dependabot/maven/org.apache.maven.plugins-maven-compiler-plugin-3.11.0'>dependabot/maven/org.apache.maven.plugins-maven-compiler-plugin-3.11.0</option>
<option value='dependabot/maven/org.apache.maven.plugins-maven-gpg-plugin-3.1.0'>dependabot/maven/org.apache.maven.plugins-maven-gpg-plugin-3.1.0</option>
<option value='dependabot/maven/org.apache.maven.plugins-maven-help-plugin-3.4.0'>dependabot/maven/org.apache.maven.plugins-maven-help-plugin-3.4.0</option>
<option value='dependabot/maven/org.apache.maven.plugins-maven-javadoc-plugin-3.5.0'>dependabot/maven/org.apache.maven.plugins-maven-javadoc-plugin-3.5.0</option>
<option value='dependabot/maven/org.codehaus.mojo-build-helper-maven-plugin-3.3.0'>dependabot/maven/org.codehaus.mojo-build-helper-maven-plugin-3.3.0</option>
<option value='dependabot/maven/org.codehaus.mojo-flatten-maven-plugin-1.4.0'>dependabot/maven/org.codehaus.mojo-flatten-maven-plugin-1.4.0</option>
<option value='earlyJava9'>earlyJava9</option>
<option value='extensions'>extensions</option>
<option value='gh-217'>gh-217</option>
<option value='gh-314'>gh-314</option>
<option value='invokedynamic'>invokedynamic</option>
<option value='java-21'>java-21</option>
<option value='java8'>java8</option>
<option value='master'>master</option>
<option value='maven_build'>maven_build</option>
<option value='origin'>origin</option>
<option value='paramAnnotationBinding'>paramAnnotationBinding</option>
<option value='param_anno_matching_change'>param_anno_matching_change</option>
<option value='refactoring' selected='selected'>refactoring</option>
<option value='transientTjp'>transientTjp</option>
<option value='verification'>verification</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>A seamless aspect-oriented extension to the Java programming language: https://github.com/eclipse-aspectj/aspectj</td><td class='sub right'>www-data</td></tr></table>
<table class='tabs'><tr><td>
<a href='/aspectj.git/?h=refactoring'>summary</a><a href='/aspectj.git/refs/?h=refactoring'>refs</a><a href='/aspectj.git/log/tests/java5/reflection/InterTypeDeclarations.aj?h=refactoring'>log</a><a class='active' href='/aspectj.git/tree/tests/java5/reflection/InterTypeDeclarations.aj?h=refactoring'>tree</a><a href='/aspectj.git/commit/tests/java5/reflection/InterTypeDeclarations.aj?h=refactoring'>commit</a><a href='/aspectj.git/diff/tests/java5/reflection/InterTypeDeclarations.aj?h=refactoring'>diff</a><a href='/aspectj.git/stats/tests/java5/reflection/InterTypeDeclarations.aj?h=refactoring'>stats</a></td><td class='form'><form class='right' method='get' action='/aspectj.git/log/tests/java5/reflection/InterTypeDeclarations.aj'>
<input type='hidden' name='h' value='refactoring'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/aspectj.git/tree/?h=refactoring'>root</a>/<a href='/aspectj.git/tree/tests?h=refactoring'>tests</a>/<a href='/aspectj.git/tree/tests/java5?h=refactoring'>java5</a>/<a href='/aspectj.git/tree/tests/java5/reflection?h=refactoring'>reflection</a>/<a href='/aspectj.git/tree/tests/java5/reflection/InterTypeDeclarations.aj?h=refactoring'>InterTypeDeclarations.aj</a></div><div class='content'>blob: 0dd4601a0649467a145194d32f9019b52d901a40 (<a href='/aspectj.git/plain/tests/java5/reflection/InterTypeDeclarations.aj?h=refactoring'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
</pre></td>
<td class='lines'><pre><code>