{"id":17109579,"url":"https://github.com/monken/p5-catalystx-extjs-direct","last_synced_at":"2025-03-23T21:41:34.249Z","repository":{"id":1378561,"uuid":"1332088","full_name":"monken/p5-catalystx-extjs-direct","owner":"monken","description":"Enable Ext.Direct in Catalyst controllers","archived":false,"fork":false,"pushed_at":"2016-09-21T22:22:23.000Z","size":1132,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T05:13:38.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monken.png","metadata":{"files":{"readme":"README.pod","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-05T17:54:34.000Z","updated_at":"2014-09-08T21:53:18.000Z","dependencies_parsed_at":"2022-07-29T11:19:40.098Z","dependency_job_id":null,"html_url":"https://github.com/monken/p5-catalystx-extjs-direct","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monken%2Fp5-catalystx-extjs-direct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monken%2Fp5-catalystx-extjs-direct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monken%2Fp5-catalystx-extjs-direct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monken%2Fp5-catalystx-extjs-direct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monken","download_url":"https://codeload.github.com/monken/p5-catalystx-extjs-direct/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175323,"owners_count":20572781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T16:23:39.966Z","updated_at":"2025-03-23T21:41:34.226Z","avatar_url":"https://github.com/monken.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"package CatalystX::ExtJS::Direct;\n# ABSTRACT: Enable Ext.Direct in Catalyst controllers\n\n1;\n\n__END__\n\n=head1 SYNOPSIS\n\n  package MyApp::Controller::API;\n  use Moose;\n  extends 'CatalystX::Controller::ExtJS::Direct::API';\n\n  package MyApp::Controller::Calculator;\n  \n  use Moose;\n  BEGIN { extends 'Catalyst::Controller' };\n  with 'CatalystX::Controller::ExtJS::Direct';\n  \n  sub sum : Local : Direct : DirectArgs(1) {\n      my ($self, $c) = @_;\n      $c-\u003eres-\u003ebody( $c-\u003ereq-\u003eparam('a') + $c-\u003ereq-\u003eparam('b') );\n  }\n  \n  1;\n\nIn your web application:\n\n  // Load ExtJS classes here\n  \u003cscript type=\"text/javascript\" src=\"/api/src\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    Ext.Direct.addProvider(Ext.app.REMOTING_API);\n    Calculator.sum({ a: 1, b: 2 }, function(result) {\n        alert(result);\n    });\n  \u003c/script\u003e\n  \n\n=head1 DESCRIPTION\n\nThis module makes the transition to Ext.Direct dead simple.\n\nHave a look at the L\u003ctutorial|CatalystX::ExtJS::Tutorial::Direct\u003e\nwhich gives you a few examples on how to use this module.\n\nL\u003cCatalystX::Controller::ExtJS::Direct::API\u003e is responsible for\nproviding the API to the ExtJS application. Some configuration\ncan be done here.\n\n=head1 SEE ALSO\n\n=over 4\n\n=item L\u003cCatalystX::ExtJS\u003e\n\nParent namespace. Includes examples and the code for the tutorial.\n\n=item L\u003cCatalystX::ExtJS::REST\u003e\n\nAdd feature-rich REST controllers to your application.\n\n=back\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonken%2Fp5-catalystx-extjs-direct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonken%2Fp5-catalystx-extjs-direct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonken%2Fp5-catalystx-extjs-direct/lists"}