fix: Change app id to app_template
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
d4d3f7b205
commit
99b105f5a7
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||
<id>app-template</id>
|
||||
<id>app_template</id>
|
||||
<name>App Template</name>
|
||||
<summary>An example summary</summary>
|
||||
<description>An example description</description>
|
||||
@ -16,9 +16,9 @@
|
||||
</dependencies>
|
||||
<navigations>
|
||||
<navigation>
|
||||
<id>app-template</id>
|
||||
<id>app_template</id>
|
||||
<name>App Template</name>
|
||||
<route>app-template.page.index</route>
|
||||
<route>app_template.page.index</route>
|
||||
<icon>app.svg</icon>
|
||||
<type>link</type>
|
||||
</navigation>
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "nextcloud/app-template",
|
||||
"name": "nextcloud/app_template",
|
||||
"description": "An example description",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"authors": [
|
||||
|
@ -10,7 +10,7 @@ use OCP\AppFramework\Bootstrap\IBootstrap;
|
||||
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
||||
|
||||
class Application extends App implements IBootstrap {
|
||||
public const APP_ID = 'app-template';
|
||||
public const APP_ID = 'app_template';
|
||||
|
||||
/** @psalm-suppress PossiblyUnusedMethod */
|
||||
public function __construct() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"openapi": "3.0.3",
|
||||
"info": {
|
||||
"title": "app-template",
|
||||
"title": "app_template",
|
||||
"version": "0.0.1",
|
||||
"description": "An example summary",
|
||||
"license": {
|
||||
@ -47,7 +47,7 @@
|
||||
}
|
||||
},
|
||||
"paths": {
|
||||
"/ocs/v2.php/apps/app-template/api": {
|
||||
"/ocs/v2.php/apps/app_template/api": {
|
||||
"get": {
|
||||
"operationId": "api-index",
|
||||
"summary": "An example API endpoint",
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "app-template",
|
||||
"name": "app_template",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "app-template",
|
||||
"name": "app_template",
|
||||
"version": "1.0.0",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "app-template",
|
||||
"name": "app_template",
|
||||
"version": "1.0.0",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"engines": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<NcAppContent>
|
||||
<div id="app-template">
|
||||
<div id="app_template">
|
||||
<h1>Hello world!</h1>
|
||||
</div>
|
||||
</NcAppContent>
|
||||
@ -18,7 +18,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
#app-template {
|
||||
#app_template {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin: 16px;
|
||||
|
@ -3,4 +3,4 @@ import App from './App.vue'
|
||||
Vue.mixin({ methods: { t, n } })
|
||||
|
||||
const View = Vue.extend(App)
|
||||
new View().$mount('#app-template')
|
||||
new View().$mount('#app_template')
|
||||
|
@ -8,4 +8,4 @@ Util::addScript(OCA\AppTemplate\AppInfo\Application::APP_ID, 'main');
|
||||
|
||||
?>
|
||||
|
||||
<div id="app-template"></div>
|
||||
<div id="app_template"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user